fromJson static method
Implementation
static ProductInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ProductInfo(
title: (json['title'] as String?) ?? '',
description:
FormattedText.fromJson(json['description'] as Map<String, dynamic>?)!,
photo: Photo.fromJson(json['photo'] as Map<String, dynamic>?),
);
}