UpdateUserSubscription.fromJson constructor

UpdateUserSubscription.fromJson(
  1. Map<String, dynamic> json
)

Parses a UpdateUserSubscription from TDLib JSON.

Implementation

factory UpdateUserSubscription.fromJson(Map<String, dynamic> json) =>
    UpdateUserSubscription(
      userId: _readInt(json['user_id']),
      payload: _readString(json['payload']),
      isCanceled: _readBool(json['is_canceled']),
      isRestored: _readBool(json['is_restored']),
      isPaymentFailed: _readBool(json['is_payment_failed']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );