Algorithm.fromJson constructor
Algorithm.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Algorithm.fromJson(Map<String, dynamic> json) {
return Algorithm(
algorithmArn: json['algorithmArn'] as String?,
algorithmImage: json['algorithmImage'] != null
? AlgorithmImage.fromJson(
json['algorithmImage'] as Map<String, dynamic>)
: null,
creationDateTime: timeStampFromJson(json['creationDateTime']),
defaultHyperParameterRanges: json['defaultHyperParameterRanges'] != null
? DefaultHyperParameterRanges.fromJson(
json['defaultHyperParameterRanges'] as Map<String, dynamic>)
: null,
defaultHyperParameters:
(json['defaultHyperParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
defaultResourceConfig:
(json['defaultResourceConfig'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']),
name: json['name'] as String?,
roleArn: json['roleArn'] as String?,
trainingInputMode: json['trainingInputMode'] as String?,
);
}