Payload.fromJson constructor

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

Implementation

factory Payload.fromJson(Map<String, dynamic> json) => Payload(
      clientId: json["clientId"] == null ? null : json["clientId"],
      contentId: json["contentId"] == null ? null : json["contentId"],
      subscriptionId:
          json["subscriptionId"] == null ? null : json["subscriptionId"],
      createdAt: DateTime.parse(json["createdAt"]),
    );