toJson method

Map<String, dynamic> toJson()

Implementation

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