NewsDetailsModel.fromJson constructor

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

Implementation

factory NewsDetailsModel.fromJson(Map<String, dynamic> json) =>
    NewsDetailsModel(
      statusCode: json["statusCode"],
      status: json["status"],
      message: json["message"],
      data: json["data"] == null
          ? null
          : NewsDetailsData.fromJson(json["data"]),
    );