Item.fromJson constructor

Item.fromJson(
  1. Map json_
)

Implementation

Item.fromJson(core.Map json_)
    : this(
        acl: json_.containsKey('acl')
            ? ItemAcl.fromJson(
                json_['acl'] as core.Map<core.String, core.dynamic>)
            : null,
        content: json_.containsKey('content')
            ? ItemContent.fromJson(
                json_['content'] as core.Map<core.String, core.dynamic>)
            : null,
        itemType: json_.containsKey('itemType')
            ? json_['itemType'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? ItemMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        payload: json_.containsKey('payload')
            ? json_['payload'] as core.String
            : null,
        queue:
            json_.containsKey('queue') ? json_['queue'] as core.String : null,
        status: json_.containsKey('status')
            ? ItemStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        structuredData: json_.containsKey('structuredData')
            ? ItemStructuredData.fromJson(json_['structuredData']
                as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );