CostTypes.fromJson constructor

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

Implementation

factory CostTypes.fromJson(Map<String, dynamic> json) {
  return CostTypes(
    includeCredit: json['IncludeCredit'] as bool?,
    includeDiscount: json['IncludeDiscount'] as bool?,
    includeOtherSubscription: json['IncludeOtherSubscription'] as bool?,
    includeRecurring: json['IncludeRecurring'] as bool?,
    includeRefund: json['IncludeRefund'] as bool?,
    includeSubscription: json['IncludeSubscription'] as bool?,
    includeSupport: json['IncludeSupport'] as bool?,
    includeTax: json['IncludeTax'] as bool?,
    includeUpfront: json['IncludeUpfront'] as bool?,
    useAmortized: json['UseAmortized'] as bool?,
    useBlended: json['UseBlended'] as bool?,
  );
}