transferTypeNullableListFromJson function

List<TransferType>? transferTypeNullableListFromJson(
  1. List? transferType, [
  2. List<TransferType>? defaultValue
])

Implementation

List<enums.TransferType>? transferTypeNullableListFromJson(
  List? transferType, [
  List<enums.TransferType>? defaultValue,
]) {
  if (transferType == null) {
    return defaultValue;
  }

  return transferType.map((e) => transferTypeFromJson(e.toString())).toList();
}