content: //
  // AUTO-GENERATED FILE, DO NOT MODIFY!
  //
  // @dart=2.18
  
  // ignore_for_file: require_trailing_commas
  // ignore_for_file: unused_element
  // ignore_for_file: unnecessary_this
  // ignore_for_file: always_put_required_named_parameters_first
  // ignore_for_file: constant_identifier_names
  // ignore_for_file: lines_longer_than_80_chars
  // ignore_for_file: avoid_function_literals_in_foreach_calls
  
  import 'package:kubenav/models/kubernetes/helpers.dart';
  import 'package:kubenav/models/plugins/argo/io_argoproj_v1alpha1_application_set_status_resources_inner_health.dart';
  
  class IoArgoprojV1alpha1ApplicationSetStatusResourcesInner {
    /// Returns a new [IoArgoprojV1alpha1ApplicationSetStatusResourcesInner] instance.
    IoArgoprojV1alpha1ApplicationSetStatusResourcesInner({
      this.group,
      this.health,
      this.hook,
      this.kind,
      this.name,
      this.namespace,
      this.requiresPruning,
      this.status,
      this.syncWave,
      this.version,
    });
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    String? group;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    IoArgoprojV1alpha1ApplicationSetStatusResourcesInnerHealth? health;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    bool? hook;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    String? kind;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    String? name;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    String? namespace;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    bool? requiresPruning;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    String? status;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    int? syncWave;
  
    ///
    /// Please note: This property should have been non-nullable! Since the specification file
    /// does not include a default value (using the "default:" property), however, the generated
    /// source code must fall back to having a nullable type.
    /// Consider adding a "default:" property in the specification file to hide this note.
    ///
    String? version;
  
    @override
    bool operator ==(Object other) =>
        identical(this, other) ||
        other is IoArgoprojV1alpha1ApplicationSetStatusResourcesInner &&
            other.group == group &&
            other.health == health &&
            other.hook == hook &&
            other.kind == kind &&
            other.name == name &&
            other.namespace == namespace &&
            other.requiresPruning == requiresPruning &&
            other.status == status &&
            other.syncWave == syncWave &&
            other.version == version;
  
    @override
    int get hashCode =>
        // ignore: unnecessary_parenthesis
        (group == null ? 0 : group!.hashCode) +
        (health == null ? 0 : health!.hashCode) +
        (hook == null ? 0 : hook!.hashCode) +
        (kind == null ? 0 : kind!.hashCode) +
        (name == null ? 0 : name!.hashCode) +
        (namespace == null ? 0 : namespace!.hashCode) +
        (requiresPruning == null ? 0 : requiresPruning!.hashCode) +
        (status == null ? 0 : status!.hashCode) +
        (syncWave == null ? 0 : syncWave!.hashCode) +
        (version == null ? 0 : version!.hashCode);
  
    @override
    String toString() =>
        'IoArgoprojV1alpha1ApplicationSetStatusResourcesInner[group=$group, health=$health, hook=$hook, kind=$kind, name=$name, namespace=$namespace, requiresPruning=$requiresPruning, status=$status, syncWave=$syncWave, version=$version]';
  
    Map<String, dynamic> toJson() {
      final json = <String, dynamic>{};
      if (this.group != null) {
        json[r'group'] = this.group;
      } else {
        json[r'group'] = null;
      }
      if (this.health != null) {
        json[r'health'] = this.health;
      } else {
        json[r'health'] = null;
      }
      if (this.hook != null) {
        json[r'hook'] = this.hook;
      } else {
        json[r'hook'] = null;
      }
      if (this.kind != null) {
        json[r'kind'] = this.kind;
      } else {
        json[r'kind'] = null;
      }
      if (this.name != null) {
        json[r'name'] = this.name;
      } else {
        json[r'name'] = null;
      }
      if (this.namespace != null) {
        json[r'namespace'] = this.namespace;
      } else {
        json[r'namespace'] = null;
      }
      if (this.requiresPruning != null) {
        json[r'requiresPruning'] = this.requiresPruning;
      } else {
        json[r'requiresPruning'] = null;
      }
      if (this.status != null) {
        json[r'status'] = this.status;
      } else {
        json[r'status'] = null;
      }
      if (this.syncWave != null) {
        json[r'syncWave'] = this.syncWave;
      } else {
        json[r'syncWave'] = null;
      }
      if (this.version != null) {
        json[r'version'] = this.version;
      } else {
        json[r'version'] = null;
      }
      return json;
    }
  
    /// Returns a new [IoArgoprojV1alpha1ApplicationSetStatusResourcesInner] instance and imports its values from
    /// [value] if it's a [Map], null otherwise.
    // ignore: prefer_constructors_over_static_methods
    static IoArgoprojV1alpha1ApplicationSetStatusResourcesInner? fromJson(
        dynamic value) {
      if (value is Map) {
        final json = value.cast<String, dynamic>();
  
        // Ensure that the map contains the required keys.
        // Note 1: the values aren't checked for validity beyond being non-null.
        // Note 2: this code is stripped in release mode!
        assert(() {
          requiredKeys.forEach((key) {
            assert(json.containsKey(key),
                'Required key "IoArgoprojV1alpha1ApplicationSetStatusResourcesInner[$key]" is missing from JSON.');
            assert(json[key] != null,
                'Required key "IoArgoprojV1alpha1ApplicationSetStatusResourcesInner[$key]" has a null value in JSON.');
          });
          return true;
        }());
  
        return IoArgoprojV1alpha1ApplicationSetStatusResourcesInner(
          group: mapValueOfType<String>(json, r'group'),
          health:
              IoArgoprojV1alpha1ApplicationSetStatusResourcesInnerHealth.fromJson(
                  json[r'health']),
          hook: mapValueOfType<bool>(json, r'hook'),
          kind: mapValueOfType<String>(json, r'kind'),
          name: mapValueOfType<String>(json, r'name'),
          namespace: mapValueOfType<String>(json, r'namespace'),
          requiresPruning: mapValueOfType<bool>(json, r'requiresPruning'),
          status: mapValueOfType<String>(json, r'status'),
          syncWave: mapValueOfType<int>(json, r'syncWave'),
          version: mapValueOfType<String>(json, r'version'),
        );
      }
      return null;
    }
  
    static List<IoArgoprojV1alpha1ApplicationSetStatusResourcesInner>
        listFromJson(
      dynamic json, {
      bool growable = false,
    }) {
      final result = <IoArgoprojV1alpha1ApplicationSetStatusResourcesInner>[];
      if (json is List && json.isNotEmpty) {
        for (final row in json) {
          final value =
              IoArgoprojV1alpha1ApplicationSetStatusResourcesInner.fromJson(row);
          if (value != null) {
            result.add(value);
          }
        }
      }
      return result.toList(growable: growable);
    }
  
    static Map<String, IoArgoprojV1alpha1ApplicationSetStatusResourcesInner>
        mapFromJson(dynamic json) {
      final map =
          <String, IoArgoprojV1alpha1ApplicationSetStatusResourcesInner>{};
      if (json is Map && json.isNotEmpty) {
        json = json.cast<String, dynamic>(); // ignore: parameter_assignments
        for (final entry in json.entries) {
          final value =
              IoArgoprojV1alpha1ApplicationSetStatusResourcesInner.fromJson(
                  entry.value);
          if (value != null) {
            map[entry.key] = value;
          }
        }
      }
      return map;
    }
  
    // maps a json object with a list of IoArgoprojV1alpha1ApplicationSetStatusResourcesInner-objects as value to a dart map
    static Map<String, List<IoArgoprojV1alpha1ApplicationSetStatusResourcesInner>>
        mapListFromJson(
      dynamic json, {
      bool growable = false,
    }) {
      final map =
          <String, List<IoArgoprojV1alpha1ApplicationSetStatusResourcesInner>>{};
      if (json is Map && json.isNotEmpty) {
        // ignore: parameter_assignments
        json = json.cast<String, dynamic>();
        for (final entry in json.entries) {
          map[entry.key] =
              IoArgoprojV1alpha1ApplicationSetStatusResourcesInner.listFromJson(
            entry.value,
            growable: growable,
          );
        }
      }
      return map;
    }
  
    /// The list of required keys that must be present in a JSON.
    static const requiredKeys = <String>{};
  }
  