Started to add fromJson and fromBson methods.