BlogPost class

Example 4: Complex nested model

Annotations
  • @AckModel.new(description: 'Blog post with author - demonstrates nested models', additionalProperties: true, additionalPropertiesField: 'metadata')

Constructors

BlogPost({required String id, required String title, required String content, required EnhancedUser author, required String publishedAt, required List<String> tags, Map<String, dynamic> metadata = const {}})

Properties

author EnhancedUser
final
content String
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
metadata Map<String, dynamic>
final
publishedAt String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>
final
title String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited