toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'field': field,
  'direction': direction.name,
};