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': '93c3e27e',
    '\$name': 'AvailableEffect',
    'flags': flags,
    'premiumRequired': premiumRequired,
    'id': id,
    'emoticon': emoticon,
    'staticIconId': staticIconId,
    'effectStickerId': effectStickerId,
    'effectAnimationId': effectAnimationId,
  };

  // Finished toJson.
  return returnValue;
}