PushMessageContentDocument.fromJson constructor

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

Parse from a json

Implementation

factory PushMessageContentDocument.fromJson(Map<String, dynamic> json) =>
    PushMessageContentDocument(
      document: json['document'] == null
          ? null
          : Document.fromJson(json['document']),
      isPinned: json['is_pinned'],
    );