Offering.fromJson constructor
Offering.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Offering.fromJson(Map<String, dynamic> json) {
return Offering(
currencyCode: json['currencyCode'] as String,
duration: json['duration'] as int,
durationUnits: (json['durationUnits'] as String).toDurationUnits(),
offeringArn: json['offeringArn'] as String,
offeringDescription: json['offeringDescription'] as String,
pricePerUnit: json['pricePerUnit'] as String,
priceUnits: (json['priceUnits'] as String).toPriceUnits(),
resourceSpecification: ResourceSpecification.fromJson(
json['resourceSpecification'] as Map<String, dynamic>),
);
}