toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var expand = this.expand;
  var groupId = this.groupId;
  var name = this.name;
  var self = this.self;
  var users = this.users;

  final json = <String, Object?>{};
  if (expand != null) {
    json[r'expand'] = expand;
  }
  if (groupId != null) {
    json[r'groupId'] = groupId;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  if (users != null) {
    json[r'users'] = users.toJson();
  }
  return json;
}