RemoteAccessSession.fromJson constructor

RemoteAccessSession.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RemoteAccessSession.fromJson(Map<String, dynamic> json) {
  return RemoteAccessSession(
    arn: json['arn'] as String?,
    billingMethod: (json['billingMethod'] as String?)?.toBillingMethod(),
    clientId: json['clientId'] as String?,
    created: timeStampFromJson(json['created']),
    device: json['device'] != null
        ? Device.fromJson(json['device'] as Map<String, dynamic>)
        : null,
    deviceMinutes: json['deviceMinutes'] != null
        ? DeviceMinutes.fromJson(
            json['deviceMinutes'] as Map<String, dynamic>)
        : null,
    deviceUdid: json['deviceUdid'] as String?,
    endpoint: json['endpoint'] as String?,
    hostAddress: json['hostAddress'] as String?,
    instanceArn: json['instanceArn'] as String?,
    interactionMode:
        (json['interactionMode'] as String?)?.toInteractionMode(),
    message: json['message'] as String?,
    name: json['name'] as String?,
    remoteDebugEnabled: json['remoteDebugEnabled'] as bool?,
    remoteRecordAppArn: json['remoteRecordAppArn'] as String?,
    remoteRecordEnabled: json['remoteRecordEnabled'] as bool?,
    result: (json['result'] as String?)?.toExecutionResult(),
    skipAppResign: json['skipAppResign'] as bool?,
    started: timeStampFromJson(json['started']),
    status: (json['status'] as String?)?.toExecutionStatus(),
    stopped: timeStampFromJson(json['stopped']),
  );
}