AppBanner.fromJson constructor

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

Implementation

factory AppBanner.fromJson(Map<String, dynamic> json) {
  return AppBanner(
    id: json['_id'],
    isActive: json['isActive'],
    identifier: json['identifier'],
    sequence: json['sequence'],
    content: BannerContent.fromJson(json['content']),
    buttonTextColor: json['buttonTextColor'],
    buttonColor: json['buttonColor'],
    buttonText: json['buttonText'],
    type: json['type'],
    link: json['link'],
  );
}