You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
1.7 KiB

import 'package:json_annotation/json_annotation.dart';
part 'captcha_data.g.dart';
@JsonSerializable(explicitToJson: true)
class CaptchaData {
final String? repCode;
final dynamic repMsg;
final RepData? repData;
final bool? success;
const CaptchaData({
this.repCode,
this.repMsg,
this.repData,
this.success,
});
factory CaptchaData.fromJson(Map<String, dynamic> json) =>
_$CaptchaDataFromJson(json);
Map<String, dynamic> toJson() => _$CaptchaDataToJson(this);
}
@JsonSerializable(explicitToJson: true)
class RepData {
final String? captchaId;
final String? projectCode;
final String? captchaType;
final String? captchaOriginalPath;
final String? captchaFontType;
final String? captchaFontSize;
final String? point;
final String? secretKey;
final String? wordList;
final String? pointList;
final String? pointJson;
final String? clientUid;
final String? captchaVerification;
final String? originalImageBase64;
final String? jigsawImageBase64;
final String? token;
final String? ts;
final String? browserInfo;
final bool? result;
const RepData({
this.captchaId,
this.projectCode,
this.captchaType,
this.captchaOriginalPath,
this.captchaFontType,
this.captchaFontSize,
this.point,
this.secretKey,
this.wordList,
this.pointList,
this.pointJson,
this.clientUid,
this.captchaVerification,
this.originalImageBase64,
this.jigsawImageBase64,
this.token,
this.ts,
this.browserInfo,
this.result,
});
factory RepData.fromJson(Map<String, dynamic> json) =>
_$RepDataFromJson(json);
Map<String, dynamic> toJson() => _$RepDataToJson(this);
}