toJson method
Implementation
@override
dynamic toJson(final String key, final dynamic value) {
switch (key) {
case MaterialDBKeys.materialButtonType:
return EnumToString.convertToString(value);
case MaterialDBKeys.floatingActionButtonType:
return EnumToString.convertToString(value);
default:
return parent.toJson(key, value);
}
}