DeviceSession.fromJson constructor

DeviceSession.fromJson(
  1. Map json_
)

Implementation

DeviceSession.fromJson(core.Map json_)
    : this(
        activeStartTime: json_.containsKey('activeStartTime')
            ? json_['activeStartTime'] as core.String
            : null,
        androidDevice: json_.containsKey('androidDevice')
            ? AndroidDevice.fromJson(
                json_['androidDevice'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        inactivityTimeout: json_.containsKey('inactivityTimeout')
            ? json_['inactivityTimeout'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateHistories: json_.containsKey('stateHistories')
            ? (json_['stateHistories'] as core.List)
                .map((value) => SessionStateEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ttl: json_.containsKey('ttl') ? json_['ttl'] as core.String : null,
      );