Gateway.fromJson constructor

Gateway.fromJson(
  1. Map<String, dynamic> json
)

Creates a Gateway from JSON data.

Implementation

Gateway.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 ? GatewaySpec.fromJson(json['spec']) : null,
        // status: json['status'] != null
        //     ? GatewayStatus.fromJson(json['status'])
        //     : null,
      );