toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    "\$": "0x99622c0c",
    "flags": flags,
    "showPreviews": showPreviews,
    "silent": silent,
    "muteUntil": muteUntil?.toIso8601String(),
    "iosSound": iosSound,
    "androidSound": androidSound,
    "otherSound": otherSound,
    "storiesMuted": storiesMuted,
    "storiesHideSender": storiesHideSender,
    "storiesIosSound": storiesIosSound,
    "storiesAndroidSound": storiesAndroidSound,
    "storiesOtherSound": storiesOtherSound,
  };

  // Finished toJson.
  return returnValue;
}