toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
  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.createDefaultWorkspace != null) {
    json[r'createDefaultWorkspace'] = this.createDefaultWorkspace;
  } else {
    json[r'createDefaultWorkspace'] = null;
  }
  if (this.defaultWorkspaceName != null) {
    json[r'defaultWorkspaceName'] = this.defaultWorkspaceName;
  } else {
    json[r'defaultWorkspaceName'] = null;
  }
  return json;
}