import 'package:json_annotation/json_annotation.dart'; part 'verify_code.g.dart'; @JsonSerializable() class VerifyCode { VerifyCode(); int code; Map data; BaseDataExtra extra; bool isError; bool isSuccess; String msg; String path; String timestamp; factory VerifyCode.fromJson(Map json) => _$VerifyCodeFromJson(json); Map toJson() => _$VerifyCodeToJson(this); } class BaseDataExtra { BaseDataExtra(); factory BaseDataExtra.fromJson(Map json) => BaseDataExtra(); Map toJson() => {}; }