toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "tags": List<dynamic>.from(tags.map((int x) => x)),
  "id": id,
  "code": code,
  "title": title,
  "model": model,
  "detail1": detail1,
  "detail2": detail2,
  if (creatorId != null) "creatorId": creatorId,
  if (adminUserIds != null) "adminUserIds": List<dynamic>.from(adminUserIds!.map((String x) => x)),
};