toJson method

  1. @override
Object toJson()

Serialize this to json.

Implementation

@override
Object toJson () => {
  'type': type?.value,
  'components': components.map((dynamic component) => component.toJson()).toList()
};