Metadata class

A class that represents metadata fields that are included in some API responses

Annotations
  • @JsonSerializable.new()

Constructors

Metadata({DateTime? created, DateTime? updated, String? createdBy, String? updatedBy})
Creates a new metadata instance
const
Metadata.fromJson(Map<String, dynamic> json)
Factory constructor that creates a Metadata from JSON data
factory

Properties

created DateTime?
The date and time the resource was created
final
createdBy String?
The user who created the resource
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updated DateTime?
The date and time the resource was last updated
final
updatedBy String?
The user who last updated the resource
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this metadata instance to a JSON map
toString() String
A string representation of this object.
inherited

Operators

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