HiddenInspectionEntry.fromJson constructor

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

Implementation

factory HiddenInspectionEntry.fromJson(Map<String, dynamic> json) =>
    HiddenInspectionEntry(
      pjNr: json['pjNr']?.toString() ?? '',
      localId: json['localId']?.toString(),
      title: json['title']?.toString(),
      hiddenAtMs: (json['hiddenAtMs'] is int)
          ? json['hiddenAtMs'] as int
          : int.tryParse(json['hiddenAtMs']?.toString() ?? '') ??
              DateTime.now().millisecondsSinceEpoch,
    );