RotinaPulo.fromJson constructor
Implementation
factory RotinaPulo.fromJson(Map<String, Object?> json) {
final em = dataHoraOpcionalDoJson(json, 'em', onde: 'pulo');
if (em == null) {
throw const FormatoDaRotinaException('pulo: falta a hora (`em`).');
}
return RotinaPulo(
motivo: textoDoJson(json, 'motivo', onde: 'pulo'),
em: em,
);
}