toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final behavior = this.behavior;
  final path = this.path;
  return {
    if (behavior != null) 'behavior': behavior.toValue(),
    if (path != null) 'path': path,
  };
}