toJson method

Map<String, dynamic> toJson()

Implementation

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