wallee
Version:
TypeScript/JavaScript client for wallee
35 lines (34 loc) • 1.2 kB
JavaScript
import { FeatureFromJSON, FeatureToJSON, } from './Feature';
/**
* Check if a given object implements the WalletType interface.
*/
export function instanceOfWalletType(value) {
return true;
}
export function WalletTypeFromJSON(json) {
return WalletTypeFromJSONTyped(json, false);
}
export function WalletTypeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': json['feature'] == null ? undefined : 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'],
};
}
export function WalletTypeToJSON(json) {
return WalletTypeToJSONTyped(json, false);
}
export function WalletTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'feature': FeatureToJSON(value['feature']),
};
}