InspectSemantics.fromJson constructor

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

Implementation

factory InspectSemantics.fromJson(Map<String, Object?> json) =>
    InspectSemantics(
      entryId: json['entry'] as String?,
      root: switch (json['root']) {
        Map root => root.cast<String, Object?>(),
        _ => null,
      },
    );