toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, Object?>{
      ...super.toJson(),
      'type': type,
      'name': name ?? '',
      'owner': owner?.toJson(),
      'static': isStatic ?? false,
      'const': isConst ?? false,
      'implicit': implicit ?? false,
      'abstract': isAbstract ?? false,
      'isGetter': isGetter ?? false,
      'isSetter': isSetter ?? false,
      if (location?.toJson() case final locationValue?)
        'location': locationValue,
    };