toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
    "id": id,
    "name": name,
    "code": code,
    "slug": slug,
    "active": active,
    "is_default": isDefault,
    "options": options == null ? [] : List<dynamic>.from(options!.map((x) => x)),
};