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