ResourceAttributes.fromJson constructor
Creates a ResourceAttributes from JSON data.
Implementation
factory ResourceAttributes.fromJson(Map<String, dynamic> json) {
final tempGroupJson = json['group'];
final tempNameJson = json['name'];
final tempNamespaceJson = json['namespace'];
final tempResourceJson = json['resource'];
final tempSubresourceJson = json['subresource'];
final tempVerbJson = json['verb'];
final tempVersionJson = json['version'];
final String? tempGroup = tempGroupJson;
final String? tempName = tempNameJson;
final String? tempNamespace = tempNamespaceJson;
final String? tempResource = tempResourceJson;
final String? tempSubresource = tempSubresourceJson;
final String? tempVerb = tempVerbJson;
final String? tempVersion = tempVersionJson;
return ResourceAttributes(
group: tempGroup,
name: tempName,
namespace: tempNamespace,
resource: tempResource,
subresource: tempSubresource,
verb: tempVerb,
version: tempVersion,
);
}