toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {if (field case final field?) 'field': field.toJson()};