26 lines
447 B
TypeScript
26 lines
447 B
TypeScript
import { JsonObject, JsonProperty } from 'typescript-json-serializer';
|
|
|
|
@JsonObject()
|
|
export default class Specie {
|
|
@JsonProperty()
|
|
private id: string;
|
|
|
|
@JsonProperty()
|
|
private name: string;
|
|
|
|
@JsonProperty()
|
|
private image: string;
|
|
|
|
public getId(): string {
|
|
return this.id;
|
|
}
|
|
|
|
public getName(): string {
|
|
return this.name;
|
|
}
|
|
|
|
public getImage(): string {
|
|
return this.image;
|
|
}
|
|
}
|