LogxxItem.fromJson constructor

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

Implementation

factory LogxxItem.fromJson(Map<String, dynamic> json) {
  final List? list = json["msg"];
  List<String>? msgs;
  if (null != list) {
    msgs = [];
    for (int i = 0, len = list.length; i < len; ++i) {
      msgs.add(list[i].toString());
    }
  }
  return LogxxItem(
    prefix: json["prefix"],
    msg: msgs,
  );
}