toJson method

Map<String, dynamic> toJson()

Implementation

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