toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  var ret = <String, dynamic>{
    'event': name,
    'data': {...data},
    'broadcast': {...broadcast},
  };
  return ret;
}