SwitchRuntimeRequest.fromJson constructor

SwitchRuntimeRequest.fromJson(
  1. Map json_
)

Implementation

SwitchRuntimeRequest.fromJson(core.Map json_)
    : this(
        acceleratorConfig: json_.containsKey('acceleratorConfig')
            ? RuntimeAcceleratorConfig.fromJson(json_['acceleratorConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        requestId: json_.containsKey('requestId')
            ? json_['requestId'] as core.String
            : null,
      );