Service.fromJson constructor

Service.fromJson(
  1. Map json_
)

Implementation

Service.fromJson(core.Map json_)
    : this(
        apiVersion: json_.containsKey('apiVersion')
            ? json_['apiVersion'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metadata: json_.containsKey('metadata')
            ? ObjectMeta.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        spec: json_.containsKey('spec')
            ? ServiceSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? ServiceStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
      );