Configuration.fromJson constructor

Configuration.fromJson(
  1. Map json_
)

Implementation

Configuration.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')
            ? ConfigurationSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? ConfigurationStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
      );