superFromJson method
void
superFromJson(
- Map<String, dynamic> json
)
Implementation
void superFromJson(Map<String, dynamic> json) {
if (json.containsKey('code'))
this.code = json['code'].runtimeType == int
? json['code']
: int.parse(json['code']);
if (json.containsKey('errno'))
this.errno = json['errno'].runtimeType == int
? json['errno']
: int.parse(json['errno']);
this.message = json['message'];
if (this.message == null || this.message!.isEmpty)
this.message = json['msg']?.toString();
if (this.message == null || this.message!.isEmpty)
this.message = json['errorMsg']?.toString();
if (this.message == null || this.message!.isEmpty)
this.message = json['error']?.toString();
this.title = json['title'];
this.uuid = json['uuid'];
}