fromMap static method

PageBlockAuthorDate? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static PageBlockAuthorDate? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var author = RichText.fromMap(_map['author'])!;
  var publish_date = _map['publish_date']! as int;
  return PageBlockAuthorDate(
    extra: extra,
    clientId: clientId,
    author: author,
    publish_date: publish_date,
  );
}