toJson method

Map<String, dynamic> toJson()

Converts this AlarmSettings instance to JSON data.

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'dateTime': dateTime.microsecondsSinceEpoch,
      'assetAudioPath': assetAudioPath,
      'loopAudio': loopAudio,
      'vibrate': vibrate,
      'volume': volume,
      'fadeDuration': fadeDuration,
      'notificationTitle': notificationTitle,
      'notificationBody': notificationBody,
      'enableNotificationOnKill': enableNotificationOnKill,
      'androidFullScreenIntent': androidFullScreenIntent,
    };