ModelUtils class abstract

A collection of methods for helping convert models to and from Maps

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getField<K>(Map<String, dynamic> map, String fieldName, [bool emptyIsNull = true]) → K
Gets a field out of a Map of the given type. Throws a BadTypeException if the type cannot be cast. Throws a MissingFieldException if the field does not exist and K is not nullable