Content.fromJson constructor

Content.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Content.fromJson(Map<String, dynamic> json) {
  return Content(
    header: json['header'] as String?,
    descriptions: (json['descriptions'] as List<dynamic>?)
        ?.map((item) => Description.fromJson(item as Map<String, dynamic>))
        .toList(),
  );
}