toJson method

Map<String, dynamic> toJson()

Implementation

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