toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
if (pushConfig != null) {
data['pushConfig'] = {
'pushTitle': pushConfig!.pushTitle,
'pushContent': pushConfig!.pushContent,
'pushPayload': pushConfig!.pushPayload,
'needBadge': pushConfig!.needBadge,
'needPush': pushConfig!.needPush,
};
}
return data;
}