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": "628c9224",
    "\$name": "MissingInvitee",
    "flags": flags,
    "premiumWouldAllowInvite": premiumWouldAllowInvite,
    "premiumRequiredForPm": premiumRequiredForPm,
    "userId": userId,
  };

  // Finished toJson.
  return returnValue;
}