toJson method
Implementation
@override
dynamic toJson() {
final result = <String, dynamic>{};
if (access != null) {
result['access'] = access;
}
if (custom != null) {
result['custom'] = custom;
}
if (hasUnreadMessages != null) {
result['hasUnreadMessages'] = hasUnreadMessages;
}
if (lastMessageTs != null) {
result['lastMessageTs'] = lastMessageTs;
}
if (subject != null) {
result['subject'] = subject;
}
return result;
}