toJson method

Map<String, dynamic> toJson()

Converts the attributes to a JSON-serializable map. This is useful for logging or debugging.

Implementation

Map<String, dynamic> toJson() {
  final result = <String, dynamic>{};
  for (final entry in _entries.entries) {
    result[entry.key] = entry.value.value;
  }
  return result;
}