report.fromJson constructor

report.fromJson(
  1. Map<String, dynamic> json, {
  2. ValueSerializer? serializer,
})

Implementation

factory report.fromJson(Map<String, dynamic> json,
    {ValueSerializer? serializer}) {
  serializer ??= driftRuntimeOptions.defaultSerializer;
  return report(
    id: serializer.fromJson<int>(json['id']),
    date: serializer.fromJson<String>(json['date']),
    exception: serializer.fromJson<String>(json['exception']),
    deviceInfo: serializer.fromJson<String>(json['deviceInfo']),
  );
}