JsonMeta class

Metadata for JSON formatting.

Represents JSON-specific formatting information such as indentation and trailing comma preferences.

Constructors

JsonMeta({int? indentSpaces, bool? useTabs, bool? trailingComma})
Creates a JsonMeta instance.
const
JsonMeta.fromJson(Map<String, dynamic> json)
Creates from JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
indentSpaces int?
Number of spaces used for indentation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailingComma bool?
Whether trailing commas are allowed.
final
useTabs bool?
Whether tabs are used for indentation instead of spaces.
final

Methods

copyWith({int? indentSpaces, bool? useTabs, bool? trailingComma}) JsonMeta
Creates a copy with updated values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON map.
toString() String
A string representation of this object.
inherited

Operators

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