import { SerializedObject } from './SerializedObject' ; import { AuthorImage , IAuthor } from "polar-shared/src/metadata/IAuthor" ; import { ProfileIDStr } from "polar-firebase/src/firebase/om/Profiles" ; export class Author extends SerializedObject implements IAuthor { public readonly name : string = "" ; public readonly profileID : ProfileIDStr ; public readonly url ? : string ; public readonly image ? : AuthorImage ; public readonly guest ? : boolean ; constructor ( val ) { super ( < any > val ) ; this . name = val . name ; this . profileID = val . profileID ; this . url = val . url ; this . image = val . image ; this . guest = val . guest ; } }