toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'id': id,
      'type': type.toJson(),
      'chat_id': chatId,
      'total_count': totalCount,
      'notifications': notifications.map((item) => item.toJson()).toList(),
      '@type': constructor,
    };