AtomicTextListItem.fromJson constructor

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

Implementation

factory AtomicTextListItem.fromJson(Map<String, dynamic> json) {
  return AtomicTextListItem(
    text: json['text'] ?? '',
    subText: json['sub_text'],
    enabled: json['enabled'] ?? true,
    maxLines: json['max_lines'],
  );
}