toJson method

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

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    "\$": "0x33473058",
    "flags": flags,
    "spoiler": spoiler,
    "id": id,
    "ttlSeconds": ttlSeconds,
    "query": query,
  };

  // Finished toJson.
  return returnValue;
}