NodeSummary.fromJson constructor

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

Implementation

factory NodeSummary.fromJson(Map<String, dynamic> json) {
  return NodeSummary(
    availabilityZone: json['AvailabilityZone'] as String?,
    creationDate: timeStampFromJson(json['CreationDate']),
    id: json['Id'] as String?,
    instanceType: json['InstanceType'] as String?,
    status: (json['Status'] as String?)?.toNodeStatus(),
  );
}