51 lines
1.4 KiB
Dart
51 lines
1.4 KiB
Dart
/// productId : ""
|
|
/// productGroup : ""
|
|
/// obtainAmount : 0.0
|
|
/// balanceAmount : 0.0
|
|
|
|
class ATGooglePayRes {
|
|
ATGooglePayRes({
|
|
String? productId,
|
|
String? productGroup,
|
|
num? obtainAmount,
|
|
num? balanceAmount,}){
|
|
_productId = productId;
|
|
_productGroup = productGroup;
|
|
_obtainAmount = obtainAmount;
|
|
_balanceAmount = balanceAmount;
|
|
}
|
|
|
|
ATGooglePayRes.fromJson(dynamic json) {
|
|
_productId = json['productId'];
|
|
_productGroup = json['productGroup'];
|
|
_obtainAmount = json['obtainAmount'];
|
|
_balanceAmount = json['balanceAmount'];
|
|
}
|
|
String? _productId;
|
|
String? _productGroup;
|
|
num? _obtainAmount;
|
|
num? _balanceAmount;
|
|
ATGooglePayRes copyWith({ String? productId,
|
|
String? productGroup,
|
|
num? obtainAmount,
|
|
num? balanceAmount,
|
|
}) => ATGooglePayRes( productId: productId ?? _productId,
|
|
productGroup: productGroup ?? _productGroup,
|
|
obtainAmount: obtainAmount ?? _obtainAmount,
|
|
balanceAmount: balanceAmount ?? _balanceAmount,
|
|
);
|
|
String? get productId => _productId;
|
|
String? get productGroup => _productGroup;
|
|
num? get obtainAmount => _obtainAmount;
|
|
num? get balanceAmount => _balanceAmount;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final map = <String, dynamic>{};
|
|
map['productId'] = _productId;
|
|
map['productGroup'] = _productGroup;
|
|
map['obtainAmount'] = _obtainAmount;
|
|
map['balanceAmount'] = _balanceAmount;
|
|
return map;
|
|
}
|
|
|
|
} |