If developers want to allow their object to be archived, they should override this method and store their state in using the provided encoder parameter. In addition, developers should also implement a constructor that takes an NSCoder argument and is exported with [Export ("initWithCoder:")]