content: // This file is automatically generated, so please do not edit it.
  // @generated by `flutter_rust_bridge`@ 2.9.0.
  
  // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
  
  import '../frb_generated.dart';
  import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
  
  // These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `fmt`, `from`
  
  class BoltzError {
    final String kind;
    final String message;
  
    const BoltzError({
      required this.kind,
      required this.message,
    });
  
    Future<void> detail() => BoltzCore.instance.api.crateApiErrorBoltzErrorDetail(
          that: this,
        );
  
    // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class.
    static Future<BoltzError> newInstance(
            {required String kind, required String message}) =>
        BoltzCore.instance.api
            .crateApiErrorBoltzErrorNew(kind: kind, message: message);
  
    @override
    int get hashCode => kind.hashCode ^ message.hashCode;
  
    @override
    bool operator ==(Object other) =>
        identical(this, other) ||
        other is BoltzError &&
            runtimeType == other.runtimeType &&
            kind == other.kind &&
            message == other.message;
  }
  