fields method

  1. @override
List<NUIEntField> fields()
override

Implementation

@override
List<NUIEntField> fields() {
  return [
    NUIEntField<NUIAuthStandardResp>(name: "success", type: NUIEntType.STRING, setter: (data, value) => data.success = value, getter: (data) => data.success),
    NUIEntField<NUIAuthStandardResp>(name: "message", type: NUIEntType.STRING, setter: (data, value) => data.message = value, getter: (data) => data.message),
    NUIEntField<NUIAuthStandardResp>(name: "error", type: NUIEntType.OBJECT, setter: (data, value) => data.error = asObject<NUIAuthStandardError?>(NUIAuthStandardErrorEnt(), value) as NUIAuthStandardError, getter: (data) => data.error),
    NUIEntField<NUIAuthStandardResp>(name: "data", type: dataType, setter: (data, value) =>  data.data = dataSetter(value), getter: (data) => data.data),
  ];
}