TunedModelCheckpoint.fromJson constructor
TunedModelCheckpoint.fromJson(
- Object? j
Implementation
factory TunedModelCheckpoint.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return TunedModelCheckpoint(
checkpointId: switch (json['checkpointId']) {
null => '',
Object $1 => decodeString($1),
},
epoch: switch (json['epoch']) {
null => 0,
Object $1 => decodeInt64($1),
},
step: switch (json['step']) {
null => 0,
Object $1 => decodeInt64($1),
},
endpoint: switch (json['endpoint']) {
null => '',
Object $1 => decodeString($1),
},
);
}