InputHistoryItem.fromJson constructor

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

Implementation

InputHistoryItem.fromJson(Map<String, dynamic> json) {
  this.text = json['text'].toString();
  this.createdTime = int.tryParse(json['createdTime'].toString()) ?? 0;
  this.pinnedTime = int.tryParse(json['pinnedTime'].toString()) ?? 0;
}