GetDataLabelingJobAiplatformV1beta1Result.fromMap constructor

GetDataLabelingJobAiplatformV1beta1Result.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetDataLabelingJobAiplatformV1beta1Result.fromMap(Map<String, dynamic> map) {
  return GetDataLabelingJobAiplatformV1beta1Result(
    activeLearningConfig: GoogleCloudAiplatformV1beta1ActiveLearningConfigResponse.fromMap((map['activeLearningConfig']! as Map).cast<String, dynamic>()),
    annotationLabels: (map['annotationLabels'] as Map).cast<String, String>(),
    createTime: map['createTime'] as String,
    currentSpend: GoogleTypeMoneyResponseAiplatformV1beta1.fromMap((map['currentSpend']! as Map).cast<String, dynamic>()),
    datasets: (map['datasets'] as List).cast<String>(),
    displayName: map['displayName'] as String,
    encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpecResponse.fromMap((map['encryptionSpec']! as Map).cast<String, dynamic>()),
    error: GoogleRpcStatusResponseAiplatformV1beta1.fromMap((map['error']! as Map).cast<String, dynamic>()),
    inputs: map['inputs'],
    inputsSchemaUri: map['inputsSchemaUri'] as String,
    instructionUri: map['instructionUri'] as String,
    labelerCount: map['labelerCount'] as int,
    labelingProgress: map['labelingProgress'] as int,
    labels: (map['labels'] as Map).cast<String, String>(),
    name: map['name'] as String,
    specialistPools: (map['specialistPools'] as List).cast<String>(),
    state: map['state'] as String,
    updateTime: map['updateTime'] as String,
  );
}