toJson method
转换为基本数据类型的Map。转换结果可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
Implementation
@override
Map<String, dynamic> toJson() {
return {
'_id': DbQueryField.toBaseType(_id),
'_extra': DbQueryField.toBaseType(_extra),
'_time': DbQueryField.toBaseType(_time),
'no': DbQueryField.toBaseType(no),
'pwd': DbQueryField.toBaseType(pwd),
'nick': DbQueryField.toBaseType(nick),
'desc': DbQueryField.toBaseType(desc),
'icon': DbQueryField.toBaseType(icon),
'phone': DbQueryField.toBaseType(phone),
'email': DbQueryField.toBaseType(email),
'secret': DbQueryField.toBaseType(secret),
'version': DbQueryField.toBaseType(version),
'language': DbQueryField.toBaseType(language),
'cashoutRate': DbQueryField.toBaseType(cashoutRate),
'vritualRate': DbQueryField.toBaseType(vritualRate),
'cashStyleList': DbQueryField.toBaseType(cashStyleList),
'iceServerList': DbQueryField.toBaseType(iceServerList),
'systemUid': DbQueryField.toBaseType(systemUid),
'adminIds': DbQueryField.toBaseType(adminIds),
'staffIds': DbQueryField.toBaseType(staffIds),
'groupIds': DbQueryField.toBaseType(groupIds),
'customXAdminNos': DbQueryField.toBaseType(customXAdminNos),
'rechargeGoodsList': DbQueryField.toBaseType(rechargeGoodsList),
'virvalueGoodsList': DbQueryField.toBaseType(virvalueGoodsList),
'wechatAppId': DbQueryField.toBaseType(wechatAppId),
'wechatAppSecret': DbQueryField.toBaseType(wechatAppSecret),
'wechatMchId': DbQueryField.toBaseType(wechatMchId),
'wechatMchSecret': DbQueryField.toBaseType(wechatMchSecret),
'alipayAppId': DbQueryField.toBaseType(alipayAppId),
'alipayAesKey': DbQueryField.toBaseType(alipayAesKey),
'alipayPublicKey': DbQueryField.toBaseType(alipayPublicKey),
'alipayAppPrivateKey': DbQueryField.toBaseType(alipayAppPrivateKey),
'alipayCertRootKey': DbQueryField.toBaseType(alipayCertRootKey),
'alipayCertPublicKey': DbQueryField.toBaseType(alipayCertPublicKey),
'alipayCertAppPublicKey': DbQueryField.toBaseType(alipayCertAppPublicKey),
'alismsAccessKeyId': DbQueryField.toBaseType(alismsAccessKeyId),
'alismsAccessKeySecret': DbQueryField.toBaseType(alismsAccessKeySecret),
'alismsEndpoint': DbQueryField.toBaseType(alismsEndpoint),
'alismsApiVersion': DbQueryField.toBaseType(alismsApiVersion),
'alismsSignName': DbQueryField.toBaseType(alismsSignName),
'alismsTemplateCode': DbQueryField.toBaseType(alismsTemplateCode),
'appleKeyP8': DbQueryField.toBaseType(appleKeyP8),
'appleKeyP8Public': DbQueryField.toBaseType(appleKeyP8Public),
'appleAuthClientId': DbQueryField.toBaseType(appleAuthClientId),
'appleAuthTeamId': DbQueryField.toBaseType(appleAuthTeamId),
'appleAuthKeyId': DbQueryField.toBaseType(appleAuthKeyId),
'appleAuthRedirectUri': DbQueryField.toBaseType(appleAuthRedirectUri),
'appleAppSiteAssociation': DbQueryField.toBaseType(appleAppSiteAssociation),
};
}