transferStatusListFromJson function
List<TransferStatus>
transferStatusListFromJson(
- List? transferStatus, [
- List<
TransferStatus> ? defaultValue
Implementation
List<enums.TransferStatus> transferStatusListFromJson(
List? transferStatus, [
List<enums.TransferStatus>? defaultValue,
]) {
if (transferStatus == null) {
return defaultValue ?? [];
}
return transferStatus
.map((e) => transferStatusFromJson(e.toString()))
.toList();
}