listFromJson static method

List<CommentDataTypeEnum> listFromJson(
  1. List json
)

Implementation

static List<CommentDataTypeEnum> listFromJson(List<dynamic> json) {
  return json
      .map((value) {
        return CommentDataTypeEnum.fromJson(value);
      })
      .whereType<CommentDataTypeEnum>()
      .toList();
}