toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final charset = this.charset;
  final data = this.data;
  return {
    if (charset != null) 'Charset': charset,
    if (data != null) 'Data': data,
  };
}