fromMap static method

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

Construct from Map.

Implementation

static StoryInfo? 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 story_id = _map['story_id']! as int;
  var date = _map['date']! as int;
  var is_for_close_friends = _map['is_for_close_friends']! as bool;
  return StoryInfo(
    extra: extra,
    clientId: clientId,
    story_id: story_id,
    date: date,
    is_for_close_friends: is_for_close_friends,
  );
}