CollectionStatus.fromJson constructor

CollectionStatus.fromJson(
  1. Map json_
)

Implementation

CollectionStatus.fromJson(core.Map json_)
    : this(
        collectionLevelIssuses: json_.containsKey('collectionLevelIssuses')
            ? (json_['collectionLevelIssuses'] as core.List)
                .map((value) => CollectionStatusItemLevelIssue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creationDate: json_.containsKey('creationDate')
            ? json_['creationDate'] as core.String
            : null,
        destinationStatuses: json_.containsKey('destinationStatuses')
            ? (json_['destinationStatuses'] as core.List)
                .map((value) => CollectionStatusDestinationStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        lastUpdateDate: json_.containsKey('lastUpdateDate')
            ? json_['lastUpdateDate'] as core.String
            : null,
      );