toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = <String, dynamic>{};
if (_vibration != null) {
json['vibration'] = _vibration?.toMap();
}
if (_sound != null) {
json['sound'] = _sound?.toMap();
}
return json;
}