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