toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "type": type,
  "enum": List<dynamic>.from(unitEnum.map((x) => x)),
};