FixedOrPercent.fromJson constructor
FixedOrPercent.fromJson(
- Object? j
Implementation
factory FixedOrPercent.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FixedOrPercent(
calculated: switch (json['calculated']) {
null => null,
Object $1 => decodeInt($1),
},
fixed: switch (json['fixed']) {
null => null,
Object $1 => decodeInt($1),
},
percent: switch (json['percent']) {
null => null,
Object $1 => decodeInt($1),
},
);
}