LogModel.fromJson constructor
Implementation
factory LogModel.fromJson(Map<String, dynamic> json) {
return LogModel(
id: json['id'],
message: json['message'],
fromDevice: json['fromDevice'],
ip: json['ip'],
type: json['type'],
createdAt:
json['createdAt'] != null ? DateTime.parse(json['createdAt']) : null,
source: json['source'],
title: json['title'],
);
}