toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'groupCode': groupCode,
    'groupTitle': groupTitle,
    'groupDescription': groupDescription,
    'topics': topics.map((e) => e.toJson()).toList(),
  };
}