DownloadAccessRestriction.fromJson constructor

DownloadAccessRestriction.fromJson(
  1. Map json_
)

Implementation

DownloadAccessRestriction.fromJson(core.Map json_)
    : this(
        deviceAllowed: json_.containsKey('deviceAllowed')
            ? json_['deviceAllowed'] as core.bool
            : null,
        downloadsAcquired: json_.containsKey('downloadsAcquired')
            ? json_['downloadsAcquired'] as core.int
            : null,
        justAcquired: json_.containsKey('justAcquired')
            ? json_['justAcquired'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        maxDownloadDevices: json_.containsKey('maxDownloadDevices')
            ? json_['maxDownloadDevices'] as core.int
            : null,
        message: json_.containsKey('message')
            ? json_['message'] as core.String
            : null,
        nonce:
            json_.containsKey('nonce') ? json_['nonce'] as core.String : null,
        reasonCode: json_.containsKey('reasonCode')
            ? json_['reasonCode'] as core.String
            : null,
        restricted: json_.containsKey('restricted')
            ? json_['restricted'] as core.bool
            : null,
        signature: json_.containsKey('signature')
            ? json_['signature'] as core.String
            : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        volumeId: json_.containsKey('volumeId')
            ? json_['volumeId'] as core.String
            : null,
      );