Content.fromJson constructor

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

Implementation

factory Content.fromJson(Map<String, dynamic> json) => Content(
  type: json["type"],
  text: Text.fromJson(json["text"]),
);