PremiumLimit.fromJson constructor

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

Parses a PremiumLimit from TDLib JSON.

Implementation

factory PremiumLimit.fromJson(Map<String, dynamic> json) => PremiumLimit(
      type: _readObject(json['type'], PremiumLimitType.fromJson),
      defaultValue: _readInt(json['default_value']),
      premiumValue: _readInt(json['premium_value']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );