ItemStatus.fromJson constructor

ItemStatus.fromJson(
  1. Map json_
)

Implementation

ItemStatus.fromJson(core.Map json_)
    : this(
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        processingErrors: json_.containsKey('processingErrors')
            ? (json_['processingErrors'] as core.List)
                .map((value) => ProcessingError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        repositoryErrors: json_.containsKey('repositoryErrors')
            ? (json_['repositoryErrors'] as core.List)
                .map((value) => RepositoryError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );