fromStorage method

dynamic fromStorage(
  1. dynamic data
)

Used to initialize the object using the data parameter. E.g. Product class

import 'package:nylo_support/helpers/helper.dart';

class Product extends Storable { ... @override fromStorage(dynamic data) { this.title = data"title"; this.price = data"price"; this.imageUrl = data"imageUrl"; } }

Implementation

fromStorage(dynamic data) {}