serializeFocusMode function
Returns the focus mode as a String.
Implementation
String serializeFocusMode(FocusMode focusMode) {
switch (focusMode) {
case FocusMode.locked:
return 'locked';
case FocusMode.auto:
return 'auto';
}
}