InfiniteScrollPODO.fromJson constructor

InfiniteScrollPODO.fromJson(
  1. Map map
)

Implementation

factory InfiniteScrollPODO.fromJson(Map<dynamic, dynamic> map) {
  return InfiniteScrollPODO.setData(
    id: map['id'] ?? 0,
    avatarPath: '${map['avatarPath']}',
    title: '${map['title']}',
    description: '${map['description']}',
    createdAt: '${map['created_at']}',
  );
}