toJson method
Implementation
Map<String, dynamic> toJson() {
final headersAllowList = this.headersAllowList;
final option = this.option;
return {
if (headersAllowList != null)
'headersAllowList': headersAllowList.map((e) => e.toValue()).toList(),
if (option != null) 'option': option.toValue(),
};
}