createToJson property

bool? createToJson
final

If true (the default), A top-level function is created that you can reference from your class.

@JsonSerializable()
class Example {
  Map<String, dynamic> toJson() => _$ExampleToJson(this);
}

Implementation

final bool? createToJson;