Description.fromJson constructor
Implementation
factory Description.fromJson(Map<String, dynamic> json) {
return Description(
text: json['text'] as String?,
type: json['type'] as String?,
isBold: json['isBold'] as bool?,
subDescriptions: (json['subDescriptions'] as List<dynamic>?)
?.map((item) => SubDescription.fromJson(item as Map<String, dynamic>))
.toList(),
);
}