toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.create != null) {
    json[r'create'] = this.create;
  } else {
    json[r'create'] = null;
  }
  if (this.data != null) {
    json[r'data'] = this.data;
  } else {
    json[r'data'] = null;
  }
    json[r'location'] = this.location;
  if (this.membersLimit != null) {
    json[r'members_limit'] = this.membersLimit;
  } else {
    json[r'members_limit'] = null;
  }
  if (this.migratingFrom != null) {
    json[r'migrating_from'] = this.migratingFrom;
  } else {
    json[r'migrating_from'] = null;
  }
  if (this.notify != null) {
    json[r'notify'] = this.notify;
  } else {
    json[r'notify'] = null;
  }
  if (this.ring != null) {
    json[r'ring'] = this.ring;
  } else {
    json[r'ring'] = null;
  }
  if (this.video != null) {
    json[r'video'] = this.video;
  } else {
    json[r'video'] = null;
  }
  return json;
}