fields method

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

Implementation

@override
List<NUIEntField> fields() {
  return [
    NUIEntField<NUIDeviceInfo>(name: "model", type: NUIEntType.STRING, setter: (data, value) => data.model = value, getter: (data) => data.model),
    NUIEntField<NUIDeviceInfo>(name: "version", type: NUIEntType.STRING, setter: (data, value) => data.version = value, getter: (data) => data.version),
    NUIEntField<NUIDeviceInfo>(name: "brand", type: NUIEntType.STRING, setter: (data, value) => data.brand = value, getter: (data) => data.brand),
    NUIEntField<NUIDeviceInfo>(name: "manufacturer", type: NUIEntType.STRING, setter: (data, value) => data.manufacturer = value, getter: (data) => data.manufacturer),
    NUIEntField<NUIDeviceInfo>(name: "platform", type: NUIEntType.STRING, setter: (data, value) => data.platform = value, getter: (data) => data.platform),
    NUIEntField<NUIDeviceInfo>(name: "ipAddress", type: NUIEntType.STRING, setter: (data, value) => data.ipAddress = value, getter: (data) => data.ipAddress),
    NUIEntField<NUIDeviceInfo>(name: "uuid", type: NUIEntType.STRING, setter: (data, value) => data.uuid = value, getter: (data) => data.uuid),
    NUIEntField<NUIDeviceInfo>(name: "details", type: NUIEntType.MAP, setter: (data, value) => data.details = asMap(value), getter: (data) => data.details),
  ];
}