Skip to content

Commit

Permalink
json_serialiable: make utility function private
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Sep 20, 2022
1 parent 52236b0 commit 12414e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_serializable/lib/src/enum_utils.dart
Expand Up @@ -29,7 +29,7 @@ String? enumValueMapFromType(

final enumMap = {
for (var field in enumFields)
field: generateEntry(
field: _generateEntry(
field: field,
jsonEnum: jsonEnum,
targetType: targetType,
Expand All @@ -44,7 +44,7 @@ String? enumValueMapFromType(
return 'const ${constMapName(targetType)} = {\n$items\n};';
}

Object? generateEntry({
Object? _generateEntry({
required FieldElement field,
required JsonEnum jsonEnum,
required DartType targetType,
Expand Down

0 comments on commit 12414e0

Please sign in to comment.