fromMap<T> method

T fromMap <T>(
  1. Map<String, dynamic> map,
  2. [SerializationOptions options = defaultSerializationOptions]
)

Converts Map<String, dynamic> to Dart object instance

Implementation

static T fromMap<T>(Map<String, dynamic> map,
    [SerializationOptions options = defaultSerializationOptions]) {
  return deserialize<T>(
      _getJsonEncoder(SerializationContext(options)).convert(map), options);
}