UNPKG

wallee

Version:
33 lines (32 loc) 1.27 kB
import { ApplicationKeyStateFromJSON, ApplicationKeyStateToJSON, } from './ApplicationKeyState'; /** * Check if a given object implements the RestApplicationUserMacKeyCreated interface. */ export function instanceOfRestApplicationUserMacKeyCreated(value) { return true; } export function RestApplicationUserMacKeyCreatedFromJSON(json) { return RestApplicationUserMacKeyCreatedFromJSONTyped(json, false); } export function RestApplicationUserMacKeyCreatedFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'creationTime': json['creationTime'] == null ? undefined : (new Date(json['creationTime'])), 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : ApplicationKeyStateFromJSON(json['state']), 'key': json['key'] == null ? undefined : json['key'], }; } export function RestApplicationUserMacKeyCreatedToJSON(json) { return RestApplicationUserMacKeyCreatedToJSONTyped(json, false); } export function RestApplicationUserMacKeyCreatedToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': ApplicationKeyStateToJSON(value['state']), }; }