GetDiscoverySummaryResponse.fromJson constructor

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

Implementation

factory GetDiscoverySummaryResponse.fromJson(Map<String, dynamic> json) {
  return GetDiscoverySummaryResponse(
    agentSummary: json['agentSummary'] != null
        ? CustomerAgentInfo.fromJson(
            json['agentSummary'] as Map<String, dynamic>)
        : null,
    applications: json['applications'] as int?,
    connectorSummary: json['connectorSummary'] != null
        ? CustomerConnectorInfo.fromJson(
            json['connectorSummary'] as Map<String, dynamic>)
        : null,
    servers: json['servers'] as int?,
    serversMappedToApplications: json['serversMappedToApplications'] as int?,
    serversMappedtoTags: json['serversMappedtoTags'] as int?,
  );
}