You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1009 B

3 years ago
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
3 years ago
part 'life_pay_model.g.dart';
3 years ago
@JsonSerializable(createToJson: true, explicitToJson: true)
class LifePayModel extends Equatable {
final int id;
3 years ago
final String? chargesName;
3 years ago
final String billDateStart;
final String billDateEnd;
final String createDate;
final double payPrincipal;
final double defaultAmount;
3 years ago
factory LifePayModel.fromJson(Map<String, dynamic> json) =>
_$LifePayModelFromJson(json);
Map<String, dynamic> toJson() => _$LifePayModelToJson(this);
3 years ago
3 years ago
@override
List<Object?> get props => [
id,
chargesName,
billDateStart,
billDateEnd,
createDate,
payPrincipal,
defaultAmount
];
3 years ago
3 years ago
const LifePayModel({
3 years ago
required this.id,
3 years ago
this.chargesName,
3 years ago
required this.billDateStart,
required this.billDateEnd,
required this.createDate,
required this.payPrincipal,
required this.defaultAmount,
});
3 years ago
}