// // AUTO-GENERATED FILE, DO NOT MODIFY! // // ignore_for_file: unused_element import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; part 'health.g.dart'; @CopyWith() @JsonSerializable( checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true, ) class Health { /// Returns a new [Health] instance. Health({ required this.database, required this.status, required this.version, }); @JsonKey( name: r'database', required: true, includeIfNull: false, ) final String database; @JsonKey( name: r'status', required: true, includeIfNull: false, ) final String status; @JsonKey( name: r'version', required: true, includeIfNull: false, ) final String version; @override bool operator ==(Object other) => identical(this, other) || other is Health && other.database == database && other.status == status && other.version == version; @override int get hashCode => database.hashCode + status.hashCode + version.hashCode; factory Health.fromJson(Map json) => _$HealthFromJson(json); Map toJson() => _$HealthToJson(this); @override String toString() { return toJson().toString(); } }