toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.accountId != null) {
    json[r'accountId'] = this.accountId;
  } else {
    json[r'accountId'] = null;
  }
    json[r'name'] = this.name;
    json[r'content'] = this.content;
    json[r'mimeType'] = this.mimeType;
  if (this.folderId != null) {
    json[r'folderId'] = this.folderId;
  } else {
    json[r'folderId'] = null;
  }
  if (this.workspaceId != null) {
    json[r'workspaceId'] = this.workspaceId;
  } else {
    json[r'workspaceId'] = null;
  }
  if (this.organizationId != null) {
    json[r'organizationId'] = this.organizationId;
  } else {
    json[r'organizationId'] = null;
  }
    json[r'metadata'] = this.metadata;
  return json;
}