HttpInstanceSummary.fromJson constructor

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

Implementation

factory HttpInstanceSummary.fromJson(Map<String, dynamic> json) {
  return HttpInstanceSummary(
    attributes: (json['Attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    healthStatus: (json['HealthStatus'] as String?)?.toHealthStatus(),
    instanceId: json['InstanceId'] as String?,
    namespaceName: json['NamespaceName'] as String?,
    serviceName: json['ServiceName'] as String?,
  );
}