toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'name'] = this.name;
    json[r'slug'] = this.slug;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.logoUrl != null) {
    json[r'logoUrl'] = this.logoUrl;
  } else {
    json[r'logoUrl'] = null;
  }
  if (this.organizationId != null) {
    json[r'organizationId'] = this.organizationId;
  } else {
    json[r'organizationId'] = null;
  }
  if (this.organization != null) {
    json[r'organization'] = this.organization;
  } else {
    json[r'organization'] = null;
  }
  if (this.role != null) {
    json[r'role'] = this.role;
  } else {
    json[r'role'] = null;
  }
  if (this.settings != null) {
    json[r'settings'] = this.settings;
  } else {
    json[r'settings'] = null;
  }
  if (this.isDefault != null) {
    json[r'isDefault'] = this.isDefault;
  } else {
    json[r'isDefault'] = null;
  }
  if (this.memberCount != null) {
    json[r'memberCount'] = this.memberCount;
  } else {
    json[r'memberCount'] = null;
  }
  if (this.billingTier != null) {
    json[r'billingTier'] = this.billingTier;
  } else {
    json[r'billingTier'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt!.toUtc().toIso8601String();
  } else {
    json[r'createdAt'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt!.toUtc().toIso8601String();
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}