fields method

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

Implementation

@override
List<NUIEntField> fields() {
  return [
    NUIEntField<NUIPushInboxMessage>(name: "id", type: NUIEntType.STRING, setter: (data, value) => data.notificationId = value, getter: (data) => data.notificationId),
    NUIEntField<NUIPushInboxMessage>(name: "notificationTitle", type: NUIEntType.STRING, setter: (data, value) => data.notificationTitle = value, getter: (data) => data.notificationTitle),
    NUIEntField<NUIPushInboxMessage>(name: "notificationDesc", type: NUIEntType.STRING, setter: (data, value) => data.notificationDesc = value, getter: (data) => data.notificationDesc),
    NUIEntField<NUIPushInboxMessage>(name: "notificationType", type: NUIEntType.STRING, setter: (data, value) => data.notificationType = value, getter: (data) => data.notificationType),
    NUIEntField<NUIPushInboxMessage>(name: "notificationDateTime", type: NUIEntType.DATE, setter: (data, value) => data.notificationDateTime = value, getter: (data) => data.notificationDateTime),
    NUIEntField<NUIPushInboxMessage>(name: "image", type: NUIEntType.STRING, setter: (data, value) => data.image = value, getter: (data) => data.image),
    NUIEntField<NUIPushInboxMessage>(name: "isRead", type: NUIEntType.BOOLEAN, setter: (data, value) => data.isRead = value, getter: (data) => data.isRead),

  ];
}