wallee
Version:
TypeScript/JavaScript client for wallee
42 lines (41 loc) • 1.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfWalletType = instanceOfWalletType;
exports.WalletTypeFromJSON = WalletTypeFromJSON;
exports.WalletTypeFromJSONTyped = WalletTypeFromJSONTyped;
exports.WalletTypeToJSON = WalletTypeToJSON;
exports.WalletTypeToJSONTyped = WalletTypeToJSONTyped;
const Feature_1 = require("./Feature");
/**
* Check if a given object implements the WalletType interface.
*/
function instanceOfWalletType(value) {
return true;
}
function WalletTypeFromJSON(json) {
return WalletTypeFromJSONTyped(json, false);
}
function WalletTypeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': json['feature'] == null ? undefined : (0, Feature_1.FeatureFromJSON)(json['feature']),
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'navigationPath': json['navigationPath'] == null ? undefined : json['navigationPath'],
'id': json['id'] == null ? undefined : json['id'],
};
}
function WalletTypeToJSON(json) {
return WalletTypeToJSONTyped(json, false);
}
function WalletTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'feature': (0, Feature_1.FeatureToJSON)(value['feature']),
};
}