toJsonValue method

Map<String, Object?> toJsonValue()

Canonical JSON is the raw object itself.

Implementation

Map<String, Object?> toJsonValue() {
  return fields.map((k, v) => MapEntry(k, v.toDynamic()));
}