GetModelResult.fromMap constructor

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

Implementation

factory GetModelResult.fromMap(Map<String, dynamic> map) {
  return GetModelResult(
    createTime: map['createTime'] as String,
    dataset: map['dataset'] as String,
    displayName: map['displayName'] as String,
    name: map['name'] as String,
    sourceLanguageCode: map['sourceLanguageCode'] as String,
    targetLanguageCode: map['targetLanguageCode'] as String,
    testExampleCount: map['testExampleCount'] as int,
    trainExampleCount: map['trainExampleCount'] as int,
    updateTime: map['updateTime'] as String,
    validateExampleCount: map['validateExampleCount'] as int,
  );
}