toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (groupId != null) {
    json[r'groupId'] = groupId;
  }
  if (userId != null) {
    json[r'userId'] = userId;
  }
  if (groupName != null) {
    json[r'groupName'] = groupName;
  }
  return json;
}