toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "type": type,
      "desc": desc,
      "help": help,
      "textRequired": textRequired,
      "subReasons": subReasons ??
          List<dynamic>.from(subReasons!.map((final x) => x.toJson())),
      "textHelp": textHelp ?? textHelp,
    };