Sink.fromJson constructor

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

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,
  );
}