jsonAnnotations property

List<JsonAnnotation> jsonAnnotations

Returns the JsonAnnotation of this field/parameter.

See JsonField and JsonFieldAlias.

Implementation

List<JsonAnnotation> get jsonAnnotations =>
    _annotations?.whereType<JsonAnnotation>().toList() ?? <JsonAnnotation>[];