toJson method

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

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    '\$hash': '99622c0c',
    '\$name': 'PeerNotifySettings',
    '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;
}