CreateDevEndpointResponse.fromJson constructor

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

Implementation

factory CreateDevEndpointResponse.fromJson(Map<String, dynamic> json) {
  return CreateDevEndpointResponse(
    arguments: (json['Arguments'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    availabilityZone: json['AvailabilityZone'] as String?,
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    endpointName: json['EndpointName'] as String?,
    extraJarsS3Path: json['ExtraJarsS3Path'] as String?,
    extraPythonLibsS3Path: json['ExtraPythonLibsS3Path'] as String?,
    failureReason: json['FailureReason'] as String?,
    glueVersion: json['GlueVersion'] as String?,
    numberOfNodes: json['NumberOfNodes'] as int?,
    numberOfWorkers: json['NumberOfWorkers'] as int?,
    roleArn: json['RoleArn'] as String?,
    securityConfiguration: json['SecurityConfiguration'] as String?,
    securityGroupIds: (json['SecurityGroupIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    status: json['Status'] as String?,
    subnetId: json['SubnetId'] as String?,
    vpcId: json['VpcId'] as String?,
    workerType: (json['WorkerType'] as String?)?.toWorkerType(),
    yarnEndpointAddress: json['YarnEndpointAddress'] as String?,
    zeppelinRemoteSparkInterpreterPort:
        json['ZeppelinRemoteSparkInterpreterPort'] as int?,
  );
}