Serializes this as a JSON object.
this
@override Map<String, Object?> toJson() => map((k, v) => MapEntry(k, v.toJson()));