FeedSubscription.fromJson constructor

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

Implementation

factory FeedSubscription.fromJson(Map<String, dynamic> json) => FeedSubscription(
  id: json['id'] as String,
  feedId: json['feed_id'] as String,
  projectId: json['project_id'] as String,
  room: json['room'] as String,
  roomId: json['room_id'] as String?,
  path: json['path'] as String,
  createdAt: DateTime.parse(json['created_at'] as String),
  annotations: ((json['annotations'] as Map?) ?? {}).cast<String, String>(),
);