package Ġcom . ad ap ty . flutter . models Ċ Ċ import Ġcom . ad ap ty . api . entity . pay wall s . Product Model Ċ Ċ class ĠProduct Discount Flutter Model Ġprivate Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġvar Ġprice : ĠDouble , ĊĠĠĠĠĠĠĠ Ġvar ĠnumberOf Periods : ĠInt , ĊĠĠĠĠĠĠĠ Ġvar Ġlocalized Price : ĠString , ĊĠĠĠĠĠĠĠ Ġvar Ġsubscription Period Ġ: ĠProduct Subscription Period Flutter Model Ċ ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġfrom ( discount : ĠProduct Model . Product Discount Model ) Ġ= ĠProduct Discount Flutter Model ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdiscount . price . toDouble (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdiscount . numberOf Periods , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdiscount . localized Price , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠProduct Subscription Period Flutter Model . from ( discount . subscription Period ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ }