toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the base page data to a JSON representation.

Implementation

@override
/// Converts the base page data to a JSON representation.
Map<String, dynamic> toJson() {
  return {
    ...super.toJson(),
    if (context != null) 'context': context,
    if (name != null) 'name': name,
    if (properties != null) 'properties': properties,
  };
}