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