derive_serde_annotation 0.1.0 copy "derive_serde_annotation: ^0.1.0" to clipboard
derive_serde_annotation: ^0.1.0 copied to clipboard

Dust serde annotations for JSON serialization and deserialization.

example/main.dart

import 'package:derive_serde_annotation/derive_serde_annotation.dart';

@Derive([Serialize(), Deserialize()])
@SerDe(renameAll: SerDeRename.snakeCase)
class AuditLog {
  @SerDe(rename: 'created_at')
  final String createdAt;

  const AuditLog(this.createdAt);
}

void main() {
  const log = AuditLog('2026-04-30T00:00:00Z');
  print(log.createdAt);
}
0
likes
160
points
120
downloads

Documentation

API reference

Publisher

verified publisherwidget-lab.dev

Weekly Downloads

Dust serde annotations for JSON serialization and deserialization.

Repository (GitHub)
View/report issues
Contributing

Topics

#codegen #annotations #serialization #dust

License

MIT (license)

Dependencies

derive_annotation

More

Packages that depend on derive_serde_annotation