jsonName property

String? jsonName
final

Optional JSON wire name for the field, when it differs from the Dart name. Needed for GraphQL fields whose wire name is a Dart-reserved keyword (in, required) or that legitimately differ on the wire (Vendure's _and / _or filter operators). When set, the generated source getter carries @JsonKey(name: '<jsonName>'), which the zorphy builder already propagates into the concrete class and json_serializable output.

Implementation

final String? jsonName;