toJson method

Map<String, dynamic> toJson()

Serializes this instance to a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'path': path,
      if (order != null) 'order': order!.name,
    };