toJson method

  1. @override
Map<String, Object?> toJson()
override

Encodes this descriptor in the native protocol JSON form.

Implementation

@override
Map<String, Object?> toJson() => {
  'kind': kind,
  'name': name,
  'namespace': namespace,
  'hash': hash.toString(),
  'physical': physical.json,
};