fromDynamic static method
Deserializes the command from a Map or a map-like object into the the
proper data model. This will throw an exception if map
is null.
Implementation
static ChallengeResponseCommand fromDynamic(
dynamic map,
String id,
DateTime timestamp,
) {
late ChallengeResponseCommand result;
if (map == null) {
throw Exception('[ChallengeResponseCommand.fromDynamic]: map is null');
} else {
result = ChallengeResponseCommand(
commandId: map['commandId'],
id: id,
signature: map['signature'],
timestamp: timestamp,
);
}
return result;
}