Embedded.fromJson constructor

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

Implementation

Embedded.fromJson(Map<String, dynamic> json) {
  title = json['title'];
  if (json['subscriptions'] != null) {
    subscriptions = <Subscriptions>[];
    json['subscriptions'].forEach((v) {
      subscriptions!.add(Subscriptions.fromJson(v));
    });
  }
}