toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (code != null) {
json[r'code'] = code;
}
if (date != null) {
json[r'date'] = date;
}
if (userId != null) {
json[r'userId'] = userId;
}
if (userName != null) {
json[r'userName'] = userName;
}
return json;
}