toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  // ignore: unnecessary_cast
  return {
    'isInstance': this.isInstance,
    'name': this.name,
    if (importableType != null)
      'importableType': this.importableType!.toJson(),
  } as Map<String, dynamic>;
}