Instance.fromJson constructor

Instance.fromJson(
  1. Map json_
)

Implementation

Instance.fromJson(core.Map json_)
    : this(
        acquisitionUri: json_.containsKey('acquisitionUri')
            ? json_['acquisitionUri'] as core.String
            : null,
        androidInstance: json_.containsKey('androidInstance')
            ? InstanceAndroidDetails.fromJson(json_['androidInstance']
                as core.Map<core.String, core.dynamic>)
            : null,
        iosInstance: json_.containsKey('iosInstance')
            ? InstanceIosDetails.fromJson(
                json_['iosInstance'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        platformType: json_.containsKey('platformType')
            ? json_['platformType'] as core.String
            : null,
        realtimePlay: json_.containsKey('realtimePlay')
            ? json_['realtimePlay'] as core.bool
            : null,
        turnBasedPlay: json_.containsKey('turnBasedPlay')
            ? json_['turnBasedPlay'] as core.bool
            : null,
        webInstance: json_.containsKey('webInstance')
            ? InstanceWebDetails.fromJson(
                json_['webInstance'] as core.Map<core.String, core.dynamic>)
            : null,
      );