Map<String, Object?> serializeAsMap() => { if (options != null) 'options': options!.serializeAsMap(), if (path != null) 'path': path, };