ReservationUtilizationGroup.fromJson constructor

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

Implementation

factory ReservationUtilizationGroup.fromJson(Map<String, dynamic> json) {
  return ReservationUtilizationGroup(
    attributes: (json['Attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    key: json['Key'] as String?,
    utilization: json['Utilization'] != null
        ? ReservationAggregates.fromJson(
            json['Utilization'] as Map<String, dynamic>)
        : null,
    value: json['Value'] as String?,
  );
}