serializeAsMap method
Serialize the object to a map for use over the method channel
Implementation
Map<String, Object?> serializeAsMap() => {
'attribute': attribute.serializeAsMap(),
if (options != null) 'options': options?.serializeAsMap(),
};