toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'is_allowed': isAllowed,
      'is_purchase_allowed': isPurchaseAllowed,
      'methods': methods.map((item) => item.toJson()).toList(),
      'country_code': countryCode,
      'state': state,
      '@type': constructor,
    };