DownloadRestrictionsMetadata.fromJson constructor

DownloadRestrictionsMetadata.fromJson(
  1. Map json_
)

Implementation

DownloadRestrictionsMetadata.fromJson(core.Map json_)
  : this(
      effectiveDownloadRestrictionWithContext:
          json_.containsKey('effectiveDownloadRestrictionWithContext')
          ? DownloadRestriction.fromJson(
              json_['effectiveDownloadRestrictionWithContext']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      itemDownloadRestriction: json_.containsKey('itemDownloadRestriction')
          ? DownloadRestriction.fromJson(
              json_['itemDownloadRestriction']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
    );