momentTypeListToJson function

List<String> momentTypeListToJson(
  1. List<MomentType>? momentType
)

Implementation

List<String> momentTypeListToJson(List<enums.MomentType>? momentType) {
  if (momentType == null) {
    return [];
  }

  return momentType.map((e) => e.value!).toList();
}