Decodes the value from a string.
@override int? decode(String value) => value.isEmpty ? null : int.parse(value);