resourceAuthsFromJsonNullable function

Map<QChatRoleResource, QChatRoleOption>? resourceAuthsFromJsonNullable(
  1. Map? map
)

Implementation

Map<QChatRoleResource, QChatRoleOption>? resourceAuthsFromJsonNullable(
    Map? map) {
  return map?.cast<dynamic, dynamic>().map((key, value) => MapEntry(
      enumDecode(_$QChatRoleResourceEnumMap, key.toString())!,
      enumDecode(_$QChatRoleOptionEnumMap, value)!));
}