fromJson static method

PageBlockAuthorDate? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static PageBlockAuthorDate? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PageBlockAuthorDate(
    author: RichText.fromJson(tdMapFromJson(json['author'])),
    publishDate: (json['publish_date'] as int?) ?? 0,
  );
}