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 json) => _$CaptchaDataFromJson(json); Map 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 json) => _$RepDataFromJson(json); Map toJson() => _$RepDataToJson(this); }