serializeEnumString function Null safety

String serializeEnumString(
  1. String enumString
)

Implementation

String serializeEnumString(String enumString) => enumString.split(".")[1];