TransactionPartnerAffiliateProgram.fromJson constructor

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

Creates a TransactionPartnerAffiliateProgram object from JSON.

Implementation

factory TransactionPartnerAffiliateProgram.fromJson(
  Map<String, dynamic> json,
) {
  return TransactionPartnerAffiliateProgram(
    sponsorUser: json['sponsor_user'] != null
        ? User.fromJson(json['sponsor_user'])
        : null,
    commissionPerMille: json['commission_per_mille'],
  );
}