DisplayFieldMap class final
Maps JSON fields to card display fields using JSON Path expressions.
Features:
- Title field mapping
- Description field mapping
- Image URL field mapping
Example:
final fieldMap = DisplayFieldMap(
title: JSONPath('$.name'),
description: JSONPath('$.details'),
imageUrl: JSONPath('$.image.url'),
);
- Annotations
-
- @JsonSerializable()
Constructors
- DisplayFieldMap.new({JSONPath? title, JSONPath? description, JSONPath? imageUrl})
-
DisplayFieldMap.fromJson(Map<
String, dynamic> json) -
factory
Properties
- description → JSONPath?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageUrl → JSONPath?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → JSONPath?
-
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