AffiliateProgramInfo.fromJson constructor
Parses a AffiliateProgramInfo from TDLib JSON.
Implementation
factory AffiliateProgramInfo.fromJson(Map<String, dynamic> json) =>
AffiliateProgramInfo(
parameters: _readObject(
json['parameters'],
AffiliateProgramParameters.fromJson,
),
endDate: _readInt(json['end_date']),
dailyRevenuePerUserAmount: _readObject(
json['daily_revenue_per_user_amount'],
StarAmount.fromJson,
),
);