NodeDaemonEndpoints.fromJson constructor

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

Creates a NodeDaemonEndpoints from JSON data.

Implementation

factory NodeDaemonEndpoints.fromJson(Map<String, dynamic> json) {
  final tempKubeletEndpointJson = json['kubeletEndpoint'];

  final DaemonEndpoint? tempKubeletEndpoint = tempKubeletEndpointJson != null
      ? DaemonEndpoint.fromJson(tempKubeletEndpointJson)
      : null;

  return NodeDaemonEndpoints(
    kubeletEndpoint: tempKubeletEndpoint,
  );
}