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.
 
 
 
 
 
 

216 lines
5.8 KiB

import 'dart:convert';
/// id : "1557965116232695808"
/// createTime : "2022-08-12 13:40:04"
/// createUser : "1333246101196636160"
/// updateTime : "2022-08-12 13:40:04"
/// updateUser : "1333246101196636160"
/// mid : "1330775037745037312"
/// linkId : "202208121339050002"
/// pm : 0
/// title : "bill_title_balance"
/// category : "bill_cate_buy"
/// type : "bill_type_zswpay"
/// number : "0.01"
/// realNumber : "0.00"
/// activityMoney : "0.00"
/// surplusActivityMoney : "0.00"
/// greenMoney : "0.00"
/// surplusGreenMoney : "0.00"
/// balance : "218.51"
/// mark : ""
/// status : true
/// isDeleted : false
/// name : "平台会员余额支付"
UserBill userBillFromJson(String str) => UserBill.fromJson(json.decode(str));
String userBillToJson(UserBill data) => json.encode(data.toJson());
class UserBill {
UserBill({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String mid,
String linkId,
int pm,
String title,
String category,
String type,
String number,
String realNumber,
String activityMoney,
String surplusActivityMoney,
String greenMoney,
String surplusGreenMoney,
String balance,
String mark,
bool status,
bool isDeleted,
String name,}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_mid = mid;
_linkId = linkId;
_pm = pm;
_title = title;
_category = category;
_type = type;
_number = number;
_realNumber = realNumber;
_activityMoney = activityMoney;
_surplusActivityMoney = surplusActivityMoney;
_greenMoney = greenMoney;
_surplusGreenMoney = surplusGreenMoney;
_balance = balance;
_mark = mark;
_status = status;
_isDeleted = isDeleted;
_name = name;
}
UserBill.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_mid = json['mid'];
_linkId = json['linkId'];
_pm = json['pm'];
_title = json['title'];
_category = json['category'];
_type = json['type'];
_number = json['number'];
_realNumber = json['realNumber'];
_activityMoney = json['activityMoney'];
_surplusActivityMoney = json['surplusActivityMoney'];
_greenMoney = json['greenMoney'];
_surplusGreenMoney = json['surplusGreenMoney'];
_balance = json['balance'];
_mark = json['mark'];
_status = json['status'];
_isDeleted = json['isDeleted'];
_name = json['name'];
}
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _mid;
String _linkId;
int _pm;
String _title;
String _category;
String _type;
String _number;
String _realNumber;
String _activityMoney;
String _surplusActivityMoney;
String _greenMoney;
String _surplusGreenMoney;
String _balance;
String _mark;
bool _status;
bool _isDeleted;
String _name;
UserBill copyWith({ String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String mid,
String linkId,
int pm,
String title,
String category,
String type,
String number,
String realNumber,
String activityMoney,
String surplusActivityMoney,
String greenMoney,
String surplusGreenMoney,
String balance,
String mark,
bool status,
bool isDeleted,
String name,
}) => UserBill( id: id ?? _id,
createTime: createTime ?? _createTime,
createUser: createUser ?? _createUser,
updateTime: updateTime ?? _updateTime,
updateUser: updateUser ?? _updateUser,
mid: mid ?? _mid,
linkId: linkId ?? _linkId,
pm: pm ?? _pm,
title: title ?? _title,
category: category ?? _category,
type: type ?? _type,
number: number ?? _number,
realNumber: realNumber ?? _realNumber,
activityMoney: activityMoney ?? _activityMoney,
surplusActivityMoney: surplusActivityMoney ?? _surplusActivityMoney,
greenMoney: greenMoney ?? _greenMoney,
surplusGreenMoney: surplusGreenMoney ?? _surplusGreenMoney,
balance: balance ?? _balance,
mark: mark ?? _mark,
status: status ?? _status,
isDeleted: isDeleted ?? _isDeleted,
name: name ?? _name,
);
String get id => _id;
String get createTime => _createTime;
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get mid => _mid;
String get linkId => _linkId;
int get pm => _pm;
String get title => _title;
String get category => _category;
String get type => _type;
String get number => _number;
String get realNumber => _realNumber;
String get activityMoney => _activityMoney;
String get surplusActivityMoney => _surplusActivityMoney;
String get greenMoney => _greenMoney;
String get surplusGreenMoney => _surplusGreenMoney;
String get balance => _balance;
String get mark => _mark;
bool get status => _status;
bool get isDeleted => _isDeleted;
String get name => _name;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = _id;
map['createTime'] = _createTime;
map['createUser'] = _createUser;
map['updateTime'] = _updateTime;
map['updateUser'] = _updateUser;
map['mid'] = _mid;
map['linkId'] = _linkId;
map['pm'] = _pm;
map['title'] = _title;
map['category'] = _category;
map['type'] = _type;
map['number'] = _number;
map['realNumber'] = _realNumber;
map['activityMoney'] = _activityMoney;
map['surplusActivityMoney'] = _surplusActivityMoney;
map['greenMoney'] = _greenMoney;
map['surplusGreenMoney'] = _surplusGreenMoney;
map['balance'] = _balance;
map['mark'] = _mark;
map['status'] = _status;
map['isDeleted'] = _isDeleted;
map['name'] = _name;
return map;
}
}