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,
      'fadeDuration': fadeDuration,
      'notificationTitle': notificationTitle,
      'notificationBody': notificationBody,
    };