fields method

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

Implementation

@override
List<NUIEntField> fields() {
  return [
    NUIEntField<NUIUserActivity>(name: "userId", type: NUIEntType.INTEGER, setter: (data, value) => data.userId = value, getter: (data) => data.userId),
    NUIEntField<NUIUserActivity>(name: "module", type: NUIEntType.STRING, setter: (data, value) => data.module = value, getter: (data) => data.module),
    NUIEntField<NUIUserActivity>(name: "action", type: NUIEntType.STRING, setter: (data, value) => data.action = value, getter: (data) => data.action),
    NUIEntField<NUIUserActivity>(name: "extras", type: NUIEntType.MAP, setter: (data, value) => data.extras = value, getter: (data) => data.extras),
    NUIEntField<NUIUserActivity>(name: "status", type: NUIEntType.INTEGER, setter: (data, value) => data.status = value, getter: (data) => data.status),
    NUIEntField<NUIUserActivity>(name: "time", type: NUIEntType.DATE, setter: (data, value) => data.time = asDateTime(value) as DateTime, getter: (data) => data.time),
  ];
}