encode method

Map<String, Object?> encode()

Implementation

Map<String, Object?> encode() => {
  'direction': direction.toTfJson(),
  'sort_paths': [for (final e in sortPaths) e.encode()],
};