connectionTypeV2ListFromJson function
- List? connectionTypeV2, [
- List<
ConnectionTypeV2> ? defaultValue
Implementation
List<enums.ConnectionTypeV2> connectionTypeV2ListFromJson(
List? connectionTypeV2, [
List<enums.ConnectionTypeV2>? defaultValue,
]) {
if (connectionTypeV2 == null) {
return defaultValue ?? [];
}
return connectionTypeV2
.map((e) => connectionTypeV2FromJson(e.toString()))
.toList();
}