ApplicationComponent.fromJson constructor
ApplicationComponent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ApplicationComponent.fromJson(Map<String, dynamic> json) {
return ApplicationComponent(
componentName: json['ComponentName'] as String?,
componentRemarks: json['ComponentRemarks'] as String?,
detectedWorkload: (json['DetectedWorkload'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(
k.toTier(),
(e as Map<String, dynamic>)
.map((k, e) => MapEntry(k, e as String)))),
monitor: json['Monitor'] as bool?,
osType: (json['OsType'] as String?)?.toOsType(),
resourceType: json['ResourceType'] as String?,
tier: (json['Tier'] as String?)?.toTier(),
);
}