toJson method

  1. @override
dynamic toJson()
override

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;
}