toJson method

Map<String, Object?> toJson()

Its own field names, blanks omitted: the create body's shape.

Implementation

Map<String, Object?> toJson() => {
  for (final MapEntry(:key, :value) in _fields.entries)
    if (value.isNotEmpty) key: value,
};