toJson method

Map<String, dynamic> toJson()

Implementation

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