toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      if (adapterData != null) 'adapterData': adapterData,
      if (checksums != null) 'checksums': checksums,
      if (name != null) 'name': name,
      if (origin != null) 'origin': origin,
      if (path != null) 'path': path,
      if (presentationHint != null) 'presentationHint': presentationHint,
      if (sourceReference != null) 'sourceReference': sourceReference,
      if (sources != null) 'sources': sources,
    };