Result.fromJson constructor
Result.fromJson(
- Map json_
Implementation
Result.fromJson(core.Map json_)
: this(
image:
json_.containsKey('image') ? json_['image'] as core.String : null,
product: json_.containsKey('product')
? Product.fromJson(
json_['product'] as core.Map<core.String, core.dynamic>)
: null,
score: json_.containsKey('score')
? (json_['score'] as core.num).toDouble()
: null,
);