Skip to content

Commit 12414e0

Browse files
committed
json_serialiable: make utility function private
1 parent 52236b0 commit 12414e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json_serializable/lib/src/enum_utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ String? enumValueMapFromType(
2929

3030
final enumMap = {
3131
for (var field in enumFields)
32-
field: generateEntry(
32+
field: _generateEntry(
3333
field: field,
3434
jsonEnum: jsonEnum,
3535
targetType: targetType,
@@ -44,7 +44,7 @@ String? enumValueMapFromType(
4444
return 'const ${constMapName(targetType)} = {\n$items\n};';
4545
}
4646

47-
Object? generateEntry({
47+
Object? _generateEntry({
4848
required FieldElement field,
4949
required JsonEnum jsonEnum,
5050
required DartType targetType,

0 commit comments

Comments
 (0)