SealedWorldJsonStringExtension extension
Extension on String that provides methods for parsing JSON strings.
Methods
-
parse<T>(T fromJson(JsonMap map), {JsonCodec codec = const JsonCodec()})
→ T
-
Parses the JSON string into an object of type
T
.
-
tryParse<T>(T? fromJson(JsonMap map)?, {JsonCodec? codec})
→ T?
-
Tries to parse the JSON string into an object of type
T
.