toJson method
Serialises this DTO to JSON. Subclasses tag the output with a type
discriminator field so fromJson can route to the right factory.
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'register',
..._$RegisterEventLogDtoToJson(this),
};