toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'pageBlockEmbeddedPost',
    if (extra != null) '@extra': extra,
    'url': url,
    'author': author,
    'author_photo': author_photo,
    'date': date,
    'page_blocks': page_blocks,
    'caption': caption
  };
}