DescribeOfferingResponse.fromJson constructor
DescribeOfferingResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeOfferingResponse.fromJson(Map<String, dynamic> json) {
return DescribeOfferingResponse(
arn: json['arn'] as String?,
currencyCode: json['currencyCode'] as String?,
duration: json['duration'] as int?,
durationUnits:
(json['durationUnits'] as String?)?.toOfferingDurationUnits(),
fixedPrice: json['fixedPrice'] as double?,
offeringDescription: json['offeringDescription'] as String?,
offeringId: json['offeringId'] as String?,
offeringType: (json['offeringType'] as String?)?.toOfferingType(),
region: json['region'] as String?,
resourceSpecification: json['resourceSpecification'] != null
? ReservationResourceSpecification.fromJson(
json['resourceSpecification'] as Map<String, dynamic>)
: null,
usagePrice: json['usagePrice'] as double?,
);
}