Log.fromMap constructor

Log.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Log.fromMap(Map<String, dynamic> map) {
  return Log(
    message: map['message'] as String,
    level: map['level'] != null ? map['level'] : null,
    time: map['time'] != null
        ? DateTime.fromMillisecondsSinceEpoch(map['time'] as int)
        : null,
    error: map['error'] != null ? map['error'] : null,
    stackTrace: map['stackTrace'] != null ? map['stackTrace'] : null,
  );
}