userRoleV2NullableListFromJson function
- List? userRoleV2, [
- List<
UserRoleV2> ? defaultValue
Implementation
List<enums.UserRoleV2>? userRoleV2NullableListFromJson(
List? userRoleV2, [
List<enums.UserRoleV2>? defaultValue,
]) {
if (userRoleV2 == null) {
return defaultValue;
}
return userRoleV2.map((e) => userRoleV2FromJson(e.toString())).toList();
}