toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() =>
    {
      "title": title,
      "serverName": serverName,
      "type": type,
      "optional": optional,
      "readOnly": readOnly,
      "hint": hint,
      "afterCount": afterCount,
      "choiceValue": choiceValue,
      "choiceObjs": choiceObjs == null
          ? null
          : List<dynamic>.from(choiceObjs!.map((x) => x.toJson())),
      "flex": flex,
    };