toJson method
Implementation
@override
String? toJson(FloatingActionButtonLocation? object) {
if (object == null) return null;
if (object == FloatingActionButtonLocation.centerDocked) {
return 'centerDocked';
} else if (object == FloatingActionButtonLocation.centerFloat) {
return 'centerFloat';
} else if (object == FloatingActionButtonLocation.centerTop) {
return 'centerTop';
} else if (object == FloatingActionButtonLocation.endDocked) {
return 'endDocked';
} else if (object == FloatingActionButtonLocation.endFloat) {
return 'endFloat';
} else if (object == FloatingActionButtonLocation.endTop) {
return 'endTop';
} else if (object == FloatingActionButtonLocation.miniCenterDocked) {
return 'miniCenterDocked';
} else if (object == FloatingActionButtonLocation.miniCenterFloat) {
return 'miniCenterFloat';
} else if (object == FloatingActionButtonLocation.miniCenterTop) {
return 'miniCenterTop';
} else if (object == FloatingActionButtonLocation.miniEndDocked) {
return 'miniEndDocked';
} else if (object == FloatingActionButtonLocation.miniEndFloat) {
return 'miniEndFloat';
} else if (object == FloatingActionButtonLocation.miniEndTop) {
return 'miniEndTop';
} else if (object == FloatingActionButtonLocation.miniStartDocked) {
return 'miniStartDocked';
} else if (object == FloatingActionButtonLocation.miniStartFloat) {
return 'miniStartFloat';
} else if (object == FloatingActionButtonLocation.miniStartTop) {
return 'miniStartTop';
} else if (object == FloatingActionButtonLocation.startDocked) {
return 'startDocked';
} else if (object == FloatingActionButtonLocation.startFloat) {
return 'startFloat';
} else if (object == FloatingActionButtonLocation.startTop) {
return 'startTop';
}
throw 'Json_Unsuported_Value';
}