PushItem.fromJson constructor

PushItem.fromJson(
  1. Map json_
)

Implementation

PushItem.fromJson(core.Map json_)
    : this(
        contentHash: json_.containsKey('contentHash')
            ? json_['contentHash'] as core.String
            : null,
        metadataHash: json_.containsKey('metadataHash')
            ? json_['metadataHash'] as core.String
            : null,
        payload: json_.containsKey('payload')
            ? json_['payload'] as core.String
            : null,
        queue:
            json_.containsKey('queue') ? json_['queue'] as core.String : null,
        repositoryError: json_.containsKey('repositoryError')
            ? RepositoryError.fromJson(json_['repositoryError']
                as core.Map<core.String, core.dynamic>)
            : null,
        structuredDataHash: json_.containsKey('structuredDataHash')
            ? json_['structuredDataHash'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );