ConcurrentAccessRestriction.fromJson constructor

ConcurrentAccessRestriction.fromJson(
  1. Map json_
)

Implementation

ConcurrentAccessRestriction.fromJson(core.Map json_)
    : this(
        deviceAllowed: json_.containsKey('deviceAllowed')
            ? json_['deviceAllowed'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        maxConcurrentDevices: json_.containsKey('maxConcurrentDevices')
            ? json_['maxConcurrentDevices'] 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,
        timeWindowSeconds: json_.containsKey('timeWindowSeconds')
            ? json_['timeWindowSeconds'] as core.int
            : null,
        volumeId: json_.containsKey('volumeId')
            ? json_['volumeId'] as core.String
            : null,
      );