toJson method

Map<String, dynamic> toJson()

toJson

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'type': contentType,
    ...toContentJson(),
  };
}