writeValueAsMap abstract method

Map<String, dynamic> writeValueAsMap(
  1. Object? value, [
  2. ObjectMapperType mapWith = ObjectMapperType.JSON
])

Serializes a Dart object into a Map<String, dynamic> representation.

This produces a format-neutral object structure suitable for conversion into JSON, YAML, XML, or other structured formats.

Implementation

Map<String, dynamic> writeValueAsMap(Object? value, [ObjectMapperType mapWith = ObjectMapperType.JSON]);