BankIdSeStatus.fromJson constructor
Implementation
factory BankIdSeStatus.fromJson(Map<String, dynamic> json) =>
switch (json['status']) {
'PENDING' => BankIdSePending.fromJson(json),
'COMPLETED' => BankIdSeCompleted.fromJson(json),
'FAILED' => BankIdSeFailed.fromJson(json),
final String status => BankIdSeUnknown(status: status),
_ => throw IdentisureException(
0, 'Invalid bankid-se status: ${json['status']}'),
};