DiscountItem.fromJson constructor
DiscountItem.fromJson(
- dynamic data
Implementation
factory DiscountItem.fromJson(dynamic data) {
var json = DynamicJsonExtension.getJsonMap(data);
return DiscountItem(
title: (json['title'] as Map<String, dynamic>?)?.map((key, value) {
return MapEntry(LanguageExtension.fromJson(key), value);
}),
type: json['type'] != null
? DiscountTypeExtension.fromJson(json['type'])
: null,
value: json['value'],
);
}