Subscription.fromJson constructor

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

Implementation

factory Subscription.fromJson(Map<String, dynamic> json) {
  return Subscription(
    id: json['Id'] as String,
    source: json['Source'] as String,
    subject: json['Subject'] as String,
    target: json['Target'] as String,
  );
}