toJson method

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

Returns a JSON representation of this.

Implementation

@override
Map<String, Object?> toJson() => {
      'runtimeType': 'RefType',
      'nullable': nullable,
      'heap-type': heapType.toJson(),
    };