fromJson static method

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

Implementation

static TreeDelta fromJson(Map<String, Object?> json) => TreeDelta(
  kind:
      TreeDeltaKind.values.asNameMap()[json['kind']] ?? TreeDeltaKind.changed,
  path: json['path'] as String? ?? '',
  property: json['property'] as String?,
  base: json['base'] as String?,
  head: json['head'] as String?,
);