toObject<T> method
Implementation
T? toObject<T>([Type? type]) {
_mappingType = MapperType.fromJson;
// Initialize an instance of T
final instance = Mappable.getInstance(type ?? T);
if (instance == null) return null;
// Call mapping for assigning value
instance.mapping(this);
return instance as T;
}