factory constructor
Also written: fromJson, toJson
A constructor that builds an object some other way. `Product.fromJson` builds a `Product` from a JSON map, and `toJson` goes the other way.
Also written: fromJson, toJson
A constructor that builds an object some other way. `Product.fromJson` builds a `Product` from a JSON map, and `toJson` goes the other way.