RelatedAssets.fromJson constructor

RelatedAssets.fromJson(
  1. Map json_
)

Implementation

RelatedAssets.fromJson(core.Map json_)
    : this(
        assets: json_.containsKey('assets')
            ? (json_['assets'] as core.List)
                .map((value) => RelatedAsset.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        relationshipAttributes: json_.containsKey('relationshipAttributes')
            ? RelationshipAttributes.fromJson(json_['relationshipAttributes']
                as core.Map<core.String, core.dynamic>)
            : null,
      );