toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.publicMetadata != null) {
    json[r'public_metadata'] = this.publicMetadata;
  } else {
    json[r'public_metadata'] = null;
  }
  if (this.privateMetadata != null) {
    json[r'private_metadata'] = this.privateMetadata;
  } else {
    json[r'private_metadata'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
  if (this.maxAllowedMemberships != null) {
    json[r'max_allowed_memberships'] = this.maxAllowedMemberships;
  } else {
    json[r'max_allowed_memberships'] = null;
  }
  if (this.adminDeleteEnabled != null) {
    json[r'admin_delete_enabled'] = this.adminDeleteEnabled;
  } else {
    json[r'admin_delete_enabled'] = null;
  }
  if (this.createdAt != null) {
    json[r'created_at'] = this.createdAt;
  } else {
    json[r'created_at'] = null;
  }
  return json;
}