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.
 
 
 
 
 
 

51 lines
1.4 KiB

/// totalFee : "100"
/// expirationTime : "2034-01-05 11:16:07"
/// duration : 10
/// packageId : "1742842291845857280"
class TenantPackageCalculateDetails {
TenantPackageCalculateDetails({
String totalFee,
String expirationTime,
num duration,
String packageId,}){
_totalFee = totalFee;
_expirationTime = expirationTime;
_duration = duration;
_packageId = packageId;
}
TenantPackageCalculateDetails.fromJson(dynamic json) {
_totalFee = json['totalFee'];
_expirationTime = json['expirationTime'];
_duration = json['duration'];
_packageId = json['packageId'];
}
String _totalFee;
String _expirationTime;
num _duration;
String _packageId;
TenantPackageCalculateDetails copyWith({ String totalFee,
String expirationTime,
num duration,
String packageId,
}) => TenantPackageCalculateDetails( totalFee: totalFee ?? _totalFee,
expirationTime: expirationTime ?? _expirationTime,
duration: duration ?? _duration,
packageId: packageId ?? _packageId,
);
String get totalFee => _totalFee;
String get expirationTime => _expirationTime;
num get duration => _duration;
String get packageId => _packageId;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['totalFee'] = _totalFee;
map['expirationTime'] = _expirationTime;
map['duration'] = _duration;
map['packageId'] = _packageId;
return map;
}
}