WorkloadGroup.fromJson constructor
Creates a WorkloadGroup from JSON data.
Implementation
WorkloadGroup.fromJson(Map<String, dynamic> json)
: this(
apiVersion: json['apiVersion'],
kind: json['kind'],
metadata: json['metadata'] != null
? ObjectMeta.fromJson(json['metadata'])
: null,
spec: json['spec'] != null
? WorkloadGroupSpec.fromJson(json['spec'])
: null,
status: json['status'] != null
? WorkloadGroupStatus.fromJson(json['status'])
: null,
);