Skip to content

Commit

Permalink
fixup! feat!: implement proper serialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 4, 2024
1 parent 1124666 commit 13f604c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/src/core/definitions/extensions/json_serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ extension SerializableMap on Map<String, Serializable> {
map((key, value) => MapEntry(key, value.toJson()));
}

/// Extension that provides JSON serialization for [List]s of [Form]s.
extension SerializableListMap on List<Map<String, Serializable>> {
/// Converts this [List] of [Map]s of [Serializable] key-value pairs to JSON.
List<Map<String, dynamic>> toJson() => map(
(serializableMap) =>
serializableMap.map((key, value) => MapEntry(key, value.toJson())),
).toList(growable: false);
}

/// Extension that provides JSON serialization for [List]s of [Uri]s.
extension UriListToJsonExtension on List<Uri> {
/// Converts this [List] of [Uri]s to JSON.
Expand Down

0 comments on commit 13f604c

Please sign in to comment.