toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'keyboardButtonTypeRequestUser',
    if (extra != null) '@extra': extra,
    'id': id,
    'restrict_user_is_bot': restrict_user_is_bot,
    'user_is_bot': user_is_bot,
    'restrict_user_is_premium': restrict_user_is_premium,
    'user_is_premium': user_is_premium
  };
}