toJson method

Map<String, dynamic> toJson()

Implementation

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