toMap<T, S> function
Converts value to Map or throws FormatException if conversion fails.
Implementation
Map<T, S> toMap<T, S>(dynamic value) =>
toMapOrNull(value) ?? (throw FormatException('Invalid Map value: $value'));
Converts value to Map or throws FormatException if conversion fails.
Map<T, S> toMap<T, S>(dynamic value) =>
toMapOrNull(value) ?? (throw FormatException('Invalid Map value: $value'));