toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'field': ?field?.toJson(),
  if (direction.isNotDefault) 'direction': direction.toJson(),
};