DevEndpoint.fromJson constructor

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

Implementation

factory DevEndpoint.fromJson(Map<String, dynamic> json) {
  return DevEndpoint(
    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?,
    lastModifiedTimestamp: timeStampFromJson(json['LastModifiedTimestamp']),
    lastUpdateStatus: json['LastUpdateStatus'] as String?,
    numberOfNodes: json['NumberOfNodes'] as int?,
    numberOfWorkers: json['NumberOfWorkers'] as int?,
    privateAddress: json['PrivateAddress'] as String?,
    publicAddress: json['PublicAddress'] as String?,
    publicKey: json['PublicKey'] as String?,
    publicKeys: (json['PublicKeys'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    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?,
  );
}