toJson method

  1. @override
dynamic toJson(
  1. String key,
  2. dynamic value
)
override

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);
  }
}