UserSetting.fromJson constructor

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

Implementation

factory UserSetting.fromJson(Map<String, dynamic> json) => UserSetting(
      user: json["user"] ?? 0,
      orderUpdateNotification: json["order_update_notification"] ?? false,
      promotionNotification: json["promotion_notification"] ?? false,
      id: json["id"] ?? 0,
    );