AttachedResource.fromJson constructor

AttachedResource.fromJson(
  1. Map json_
)

Implementation

AttachedResource.fromJson(core.Map json_)
    : this(
        assetType: json_.containsKey('assetType')
            ? json_['assetType'] as core.String
            : null,
        versionedResources: json_.containsKey('versionedResources')
            ? (json_['versionedResources'] as core.List)
                .map((value) => VersionedResource.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );