fields method
List<NUIEntField>
fields(
)
override
Implementation
@override
List<NUIEntField> fields() {
return [
NUIEntField<NUIErrorMapping>(name: "code", type: NUIEntType.STRING, setter: (data, value) => data.code = value, getter: (data) => data.code),
NUIEntField<NUIErrorMapping>(name: "module", type: NUIEntType.STRING, setter: (data, value) => data.module = value, getter: (data) => data.module),
NUIEntField<NUIErrorMapping>(name: "title", type: NUIEntType.STRING, setter: (data, value) => data.title = value, getter: (data) => data.title),
NUIEntField<NUIErrorMapping>(name: "message", type: NUIEntType.STRING, setter: (data, value) => data.message = value, getter: (data) => data.message),
NUIEntField<NUIErrorMapping>(name: "actionType", type: NUIEntType.STRING, setter: (data, value) => data.actionType = value, getter: (data) => data.actionType),
NUIEntField<NUIErrorMapping>(name: "actionCode", type: NUIEntType.STRING, setter: (data, value) => data.actionCode = value, getter: (data) => data.actionCode),
NUIEntField<NUIErrorMapping>(name: "actionMessage", type: NUIEntType.STRING, setter: (data, value) => data.actionMessage = value, getter: (data) => data.actionMessage),
NUIEntField<NUIErrorMapping>(name: "extra", type: NUIEntType.STRING, setter: (data, value) => data.extra = value, getter: (data) => data.extra),
NUIEntField<NUIErrorMapping>(name: "id", type: NUIEntType.STRING, setter: (data, value) => data.id = data.code! + "-" + data.module!, getter: (data) => data.code! + "-" + data.module!),
];
}