V2Restrictions.fromJson constructor

V2Restrictions.fromJson(
  1. Map json_
)

Implementation

V2Restrictions.fromJson(core.Map json_)
    : this(
        androidKeyRestrictions: json_.containsKey('androidKeyRestrictions')
            ? V2AndroidKeyRestrictions.fromJson(
                json_['androidKeyRestrictions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        apiTargets: json_.containsKey('apiTargets')
            ? (json_['apiTargets'] as core.List)
                .map((value) => V2ApiTarget.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        browserKeyRestrictions: json_.containsKey('browserKeyRestrictions')
            ? V2BrowserKeyRestrictions.fromJson(
                json_['browserKeyRestrictions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        iosKeyRestrictions: json_.containsKey('iosKeyRestrictions')
            ? V2IosKeyRestrictions.fromJson(json_['iosKeyRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
        serverKeyRestrictions: json_.containsKey('serverKeyRestrictions')
            ? V2ServerKeyRestrictions.fromJson(json_['serverKeyRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );