UNPKG

ngx-rickandmorty

Version:

25 lines (24 loc) 639 B
import { CharacterGender } from '../enums/character-gender'; import { RawCharacter } from './raw-character'; import { CharacterStatus } from '../enums/character-status'; export declare class Character { id: number; name: string; status: CharacterStatus; species: string; type: string; gender: CharacterGender; origin: { name: string; id: number; }; location: { name: string; id: number; }; image: string; episode: number[]; url: string; created: Date; static fromJson({ origin, location, episode, created, ...common }: RawCharacter): Character; }