toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotations != null) 'annotations': annotations!,
      if (content != null) 'content': content!,
      if (digest != null) 'digest': digest!,
      if (downloadLocation != null) 'downloadLocation': downloadLocation!,
      if (mediaType != null) 'mediaType': mediaType!,
      if (name != null) 'name': name!,
      if (uri != null) 'uri': uri!,
    };