toMap method

Map<String, dynamic> toMap (
  1. Object object,
  2. [SerializationOptions options = defaultSerializationOptions]
)

Converts Dart object to Map<String, dynamic>

Implementation

static Map<String, dynamic> toMap(Object object,
    [SerializationOptions options = defaultSerializationOptions]) {
  return deserialize<Map<String, dynamic>>(
      serialize(object, options), options);
}