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': '02b78156',
    '\$name': 'InputKeyboardButtonRequestPeer',
    'flags': flags,
    'nameRequested': nameRequested,
    'usernameRequested': usernameRequested,
    'photoRequested': photoRequested,
    'style': style,
    'text': text,
    'buttonId': buttonId,
    'peerType': peerType,
    'maxQuantity': maxQuantity,
  };

  // Finished toJson.
  return returnValue;
}