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