AttachmentPropertiesUpdateBody.fromJson constructor

AttachmentPropertiesUpdateBody.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AttachmentPropertiesUpdateBody.fromJson(Map<String, Object?> json) {
  return AttachmentPropertiesUpdateBody(
    id: json[r'id'] as String? ?? '',
    type: json[r'type'] as String? ?? '',
    status: json[r'status'] as String?,
    title: json[r'title'] as String?,
    container: json[r'container'] != null
        ? Container.fromJson(json[r'container']! as Map<String, Object?>)
        : null,
    metadata: json[r'metadata'] != null
        ? AttachmentPropertiesUpdateBodyMetadata.fromJson(
            json[r'metadata']! as Map<String, Object?>)
        : null,
    extensions: json[r'extensions'] as Map<String, Object?>?,
    version: Version.fromJson(
        json[r'version'] as Map<String, Object?>? ?? const {}),
  );
}