Json.fromJson constructor

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

Implementation

Json.fromJson(Map<String, dynamic> json) {
  styleForBackground = json['styleForBackground'] != null
      ? new StyleForBackground.fromJson(json['styleForBackground'])
      : null;
  styleForText = json['styleForText'] != null
      ? new StyleForText.fromJson(json['styleForText'])
      : null;
  slotData = json['slotData'] != null
      ? new SlotData.fromJson(json['slotData'])
      : null;
  styleForBtn = json['styleForBtn'] != null
      ? new StyleForBtn.fromJson(json['styleForBtn'])
      : null;
}