AuthorizationPolicy.fromJson constructor
Creates a AuthorizationPolicy from JSON data.
Implementation
AuthorizationPolicy.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
? AuthorizationPolicySpec.fromJson(json['spec'])
: null,
status: json['status'] != null
? AuthorizationPolicyStatus.fromJson(json['status'])
: null,
);