import 'package:json_annotation/json_annotation.dart';

part 'bank_acc.g.dart';

@JsonSerializable(fieldRename: FieldRename.snake)
class BankAcc {
  final String? holderName;
  final String? bankName;
  final String? number;
  final String? routingNumber;
  final String? country;
  final String? state;
  final String? city;
  final String? street;
  final String? building;
  final String? zip;

  BankAcc({
    required this.holderName,
    required this.bankName,
    required this.number,
    required this.routingNumber,
    required this.country,
    required this.state,
    required this.city,
    required this.street,
    required this.building,
    required this.zip,
  });

  factory BankAcc.fromJson(Map<String, dynamic> json) {
    return _$BankAccFromJson(json);
  }

  Map<String, dynamic> toJson() => _$BankAccToJson(this);
}
