MitIdStatus.fromJson constructor
Implementation
factory MitIdStatus.fromJson(Map<String, dynamic> json) =>
switch (json['status']) {
'PENDING' => MitIdPending.fromJson(json),
'COMPLETED' => MitIdCompleted.fromJson(json),
'FAILED' => MitIdFailed.fromJson(json),
final String status => MitIdUnknown(status: status),
_ => throw IdentisureException(
0, 'Invalid mitid status: ${json['status']}'),
};