import 'package:json_annotation/json_annotation.dart';

part 'tenant_payment_method_model.g.dart';

@JsonSerializable()
class TenantPaymentMethodModel {
  final String uuid;

  @JsonKey(name: 'source_name')
  final String sourceName;

  @JsonKey(name: 'account_number')
  final String accountNumber;

  @JsonKey(name: 'receipent_name')
  final String receipentName;

  @JsonKey(name: 'created_at')
  final String createdAt;

  @JsonKey(name: 'updated_at')
  final String updatedAt;

  const TenantPaymentMethodModel({
    required this.uuid,
    required this.sourceName,
    required this.accountNumber,
    required this.receipentName,
    required this.createdAt,
    required this.updatedAt,
  });

  factory TenantPaymentMethodModel.fromJson(Map<String, dynamic> json) =>
      _$TenantPaymentMethodModelFromJson(json);
  Map<String, dynamic> toJson() => _$TenantPaymentMethodModelToJson(this);
}
