toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotations != null) 'annotations': annotations!,
      if (contents != null) 'contents': contents!,
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (filename != null) 'filename': filename!,
      if (hash != null) 'hash': hash!,
      if (labels != null) 'labels': labels!,
      if (mimeType != null) 'mimeType': mimeType!,
      if (name != null) 'name': name!,
      if (revisionCreateTime != null)
        'revisionCreateTime': revisionCreateTime!,
      if (revisionId != null) 'revisionId': revisionId!,
      if (revisionUpdateTime != null)
        'revisionUpdateTime': revisionUpdateTime!,
      if (sizeBytes != null) 'sizeBytes': sizeBytes!,
      if (sourceUri != null) 'sourceUri': sourceUri!,
    };