Sink.fromJson constructor
Implementation
factory Sink.fromJson(Map<String, dynamic> json) {
return Sink(
name: json['name'] as String,
id: json['id'] as String,
session: json.containsKey('session') ? json['session'] as String : null,
);
}