LabeledContent.fromJson constructor

LabeledContent.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory LabeledContent.fromJson(Map<String, Object?> json) {
  return LabeledContent(
    contentType: json[r'contentType'] as String? ?? '',
    contentId: (json[r'contentId'] as num?)?.toInt() ?? 0,
    title: json[r'title'] as String? ?? '',
  );
}