toObject<T> method
T?
toObject<T>()
Implementation
T? toObject<T>() {
_mappingType = MappingType.fromJson;
// Initialize an instance of T
var instance = Mappable(T);
// Call mapping for assigning value
instance.mapping(this);
return instance as T;
}