mediumTypeToJson function
Convert MediumType to String
Implementation
String? mediumTypeToJson(MediumType? value) {
switch (value) {
case MediumType.image:
return 'image';
case MediumType.video:
return 'video';
default:
return null;
}
}