MessageResponseData.buttons constructor

MessageResponseData.buttons(
  1. Map<String, dynamic> json
)

Implementation

factory MessageResponseData.buttons(Map<String, dynamic> json) {
  var buttons = json["buttons"] as List;

  return MessageResponseData(
    message: json["message"],
    buttons: buttons.map((e) => CarouselButton.fromJson(e)).toList(),
  );
}