UserGroupDTO.fromJson constructor
Implementation
UserGroupDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
name = json['name'];
baseDiscountPercentage = json['baseDiscountPercentage'];
priceGroup = json['priceGroup'] != null
? ProductPriceGroupDTO.fromJson(json['priceGroup'])
: null;
if (json['users'] != null) {
users = <ProfileDTO>[];
json['users'].forEach((v) {
users!.add(ProfileDTO.fromJson(v));
});
}
}