ModelVersionCheckpoint.fromJson constructor

ModelVersionCheckpoint.fromJson(
  1. Object? j
)

Implementation

factory ModelVersionCheckpoint.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ModelVersionCheckpoint(
    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),
    },
  );
}