json_serializable_type_helper_utils library

Constants

keyParam → const String

Properties

allowedTypeNames Iterable<String>
The names of types that can be used as Map keys.
no setter
instances List<ToFromStringHelper>
ToFromStringHelper instances representing non-String types that can be used as Map keys.
final

Functions

checkSafeKeyType(String expression, DartType keyArg) → void
forType(DartType type) → ToFromStringHelper?
isKeyStringable(DartType keyType) bool
Returns true if keyType can be automatically converted to/from String – and is therefore usable as a key in a Map.
wrapNullableIfNecessary(String expression, String output, bool nullable) String