CockpitRebuildEntry.fromJson constructor

CockpitRebuildEntry.fromJson(
  1. Map<String, Object?> json
)

Decodes a CockpitRebuildEntry from a JSON object.

Implementation

factory CockpitRebuildEntry.fromJson(Map<String, Object?> json) {
  return CockpitRebuildEntry(
    signature: json['signature']! as String,
    routeName: json['routeName']! as String,
    typeName: json['typeName']! as String,
    rebuildCount: json['rebuildCount'] as int? ?? 0,
    builtOnceCount: json['builtOnceCount'] as int? ?? 0,
    keyValue: json['keyValue'] as String?,
    semanticId: json['semanticId'] as String?,
    textPreview: json['textPreview'] as String?,
  );
}