Skip to content

Commit

Permalink
. r formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
yelmuratoff committed Jun 29, 2024
1 parent 5246c3c commit aaead54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/src/core/utils/converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ class ApprovalConverter {
);
}

final String jsonBody =
jsonMap.entries.map((entry) => '"${entry.key}": ${encodeReflectively(entry.value)}').join(', ');
final String jsonBody = jsonMap.entries
.map((entry) => '"${entry.key}": ${encodeReflectively(entry.value)}')
.join(', ');

if (includeClassName) {
final String className = object.runtimeType.toString();
final String capitalizedClassName = '${className[0].toLowerCase()}${className.substring(1)}';
final String capitalizedClassName =
'${className[0].toLowerCase()}${className.substring(1)}';
return '{"$capitalizedClassName": {$jsonBody}}';
}

Expand Down

0 comments on commit aaead54

Please sign in to comment.