LanguageModel.fromJson constructor
LanguageModel.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LanguageModel.fromJson(Map<String, dynamic> json) {
return LanguageModel(
baseModelName: (json['BaseModelName'] as String?)?.toBaseModelName(),
createTime: timeStampFromJson(json['CreateTime']),
failureReason: json['FailureReason'] as String?,
inputDataConfig: json['InputDataConfig'] != null
? InputDataConfig.fromJson(
json['InputDataConfig'] as Map<String, dynamic>)
: null,
languageCode: (json['LanguageCode'] as String?)?.toCLMLanguageCode(),
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
modelName: json['ModelName'] as String?,
modelStatus: (json['ModelStatus'] as String?)?.toModelStatus(),
upgradeAvailability: json['UpgradeAvailability'] as bool?,
);
}