import Immutable from "immutable" ; import File from "./file" ; class Readme extends Immutable . Record ( { file : new File ( ) , title : String ( ) , description : String ( ) , } ) { getFile ( ) { return this . get ( "file" ) ; } getTitle ( ) { return this . get ( "title" ) ; } getDescription ( ) { return this . get ( "description" ) ; } param { File } file param { Object } def return { Readme } static create ( file , def ) { def = def || { } ; return new Readme ( { file : file , title : def . title || "" , description : def . description || "" , } ) ; } } export default Readme ;