toJson method

  1. @override
Map<String, dynamic> toJson()
override

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': 'change',
      ..._$ChangeEventLogDtoToJson(this),
    };