GetDataLabelingJobResult.fromMap constructor

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

Implementation

factory GetDataLabelingJobResult.fromMap(Map<String, dynamic> map) {
  return GetDataLabelingJobResult(
    activeLearningConfig: GoogleCloudAiplatformV1ActiveLearningConfigResponse.fromMap((map['activeLearningConfig']! as Map).cast<String, dynamic>()),
    annotationLabels: (map['annotationLabels'] as Map).cast<String, String>(),
    createTime: map['createTime'] as String,
    currentSpend: GoogleTypeMoneyResponse.fromMap((map['currentSpend']! as Map).cast<String, dynamic>()),
    datasets: (map['datasets'] as List).cast<String>(),
    displayName: map['displayName'] as String,
    encryptionSpec: GoogleCloudAiplatformV1EncryptionSpecResponse.fromMap((map['encryptionSpec']! as Map).cast<String, dynamic>()),
    error: GoogleRpcStatusResponse.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,
  );
}