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(tdMapFromJson(json['description'])),
photo: Photo.fromJson(tdMapFromJson(json['photo'])),
);
}