GetReservedCacheNodeOfferingResult.fromMap constructor

GetReservedCacheNodeOfferingResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetReservedCacheNodeOfferingResult.fromMap(Map<String, dynamic> map) {
  return GetReservedCacheNodeOfferingResult(
    cacheNodeType: (() { final guardedValue = map['cacheNodeType']; if (guardedValue == null) return null; return guardedValue as String; })(),
    duration: (() { final guardedValue = map['duration']; if (guardedValue == null) return null; return guardedValue as String; })(),
    fixedPrice: (() { final guardedValue = map['fixedPrice']; if (guardedValue == null) return null; return (guardedValue as num).toDouble(); })(),
    offeringId: (() { final guardedValue = map['offeringId']; if (guardedValue == null) return null; return guardedValue as String; })(),
    offeringType: (() { final guardedValue = map['offeringType']; if (guardedValue == null) return null; return guardedValue as String; })(),
    productDescription: (() { final guardedValue = map['productDescription']; if (guardedValue == null) return null; return guardedValue as String; })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}