PremiumFeatures.fromMap constructor
PremiumFeatures.fromMap(
- Map<String, dynamic> map
)
Implementation
PremiumFeatures.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['features'] != null) {
features = [];
for (var someValue in map['features']) {
if (someValue != null) {
features?.add(TdApiMap.fromMap(someValue) as PremiumFeature);
}
}
}
if (map['limits'] != null) {
limits = [];
for (var someValue in map['limits']) {
if (someValue != null) {
limits?.add(TdApiMap.fromMap(someValue) as PremiumLimit);
}
}
}
if (map['payment_link'] != null) {
payment_link = TdApiMap.fromMap(map['payment_link']) as InternalLinkType;
}
}