Converts a custom message to the map representation, encodable to JSON.
@override Map<String, dynamic> toJson() => _$CustomMessageToJson(this);