2024-05-18 09:37:50 +08:00

52 lines
1.4 KiB
Dart
Executable File

class RecipientInformationEntity {
int? errorCode;
String? description;
String? errorMsg;
RecipientInformationData? data;
RecipientInformationEntity(
{this.errorCode, this.description, this.errorMsg, this.data});
RecipientInformationEntity.fromJson(Map<String, dynamic> json) {
errorCode = json['errorCode'];
description = json['description'];
errorMsg = json['errorMsg'];
data = json['data'] != null ? RecipientInformationData.fromJson(json['data']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['errorCode'] = errorCode;
data['description'] = description;
data['errorMsg'] = errorMsg;
if (this.data != null) {
data['data'] = this.data!.toJson();
}
return data;
}
}
class RecipientInformationData {
int? uid;
String? nickname;
String? headUrl;
String? userid;
RecipientInformationData({this.uid, this.nickname, this.headUrl, this.userid});
RecipientInformationData.fromJson(Map<String, dynamic> json) {
uid = json['uid'];
nickname = json['nickname'];
headUrl = json['headUrl'];
userid = json['userid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['uid'] = uid;
data['nickname'] = nickname;
data['headUrl'] = headUrl;
data['userid'] = userid;
return data;
}
}