Story.fromJson constructor

Story.fromJson(
  1. Map<String, dynamic> json
)

Constructs an instance of Story from a JSON map.

Implementation

factory Story.fromJson(Map<String, dynamic> json) {
  return Story(
    chat: Chat.fromJson(json['chat'] as Map<String, dynamic>),
    id: json['id'] as int,
  );
}