fromJson static method

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

Implementation

static FoundAffiliateProgram? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return FoundAffiliateProgram(
    botUserId: (json['bot_user_id'] as int?) ?? 0,
    info: AffiliateProgramInfo.fromJson(tdMapFromJson(json['info'])),
  );
}