toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  if (argsForIos != null && Platform.isIOS) {
    return {
      'title': title,
      'description': description,
      'argsForIos': argsForIos!.toJson(),
      'useDefaultSound': argsForIos!.useDefaultSound,
      'interruptionLevel': argsForIos!.interruptionLevel.index,
    };
  }
  return {
    'title': title,
    'description': description,
  };
}