toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "unseen_count": unseenCount,
      "notifications": notifications == null
          ? []
          : List<dynamic>.from(notifications!.map((x) => x)),
    };