fields method
List<NUIEntField>
fields(
)
override
Implementation
@override
List<NUIEntField> fields() {
return [
NUIEntField<NUIPushOSNotification>(name: "appId", type: NUIEntType.STRING, setter: (data, value) => data.appId = value, getter: (data) => data.appId),
NUIEntField<NUIPushOSNotification>(name: "headings", type: NUIEntType.MAP, setter: (data, value) => data.headings = value, getter: (data) => data.headings),
NUIEntField<NUIPushOSNotification>(name: "subtitle", type: NUIEntType.MAP, setter: (data, value) => data.subtitle = value, getter: (data) => data.subtitle),
NUIEntField<NUIPushOSNotification>(name: "contents", type: NUIEntType.MAP, setter: (data, value) => data.contents = value, getter: (data) => data.contents),
NUIEntField<NUIPushOSNotification>(name: "big_picture", type: NUIEntType.STRING, setter: (data, value) => data.bigPicture = value, getter: (data) => data.bigPicture),
NUIEntField<NUIPushOSNotification>(name: "huawei_big_picture", type: NUIEntType.STRING, setter: (data, value) => data.huawei_big_picture = value, getter: (data) => data.huawei_big_picture),
NUIEntField<NUIPushOSNotification>(name: "data", type: NUIEntType.MAP, setter: (data, value) => data.data = value, getter: (data) => data.data),
NUIEntField<NUIPushOSNotification>(name: "android_channel_id", type: NUIEntType.STRING, setter: (data, value) => data.android_channel_id = value, getter: (data) => data.android_channel_id),
NUIEntField<NUIPushOSNotification>(name: "huawei_channel_id", type: NUIEntType.STRING, setter: (data, value) => data.huawei_channel_id = value, getter: (data) => data.huawei_channel_id),
NUIEntField<NUIPushOSNotification>(name: "include_player_ids", type: NUIEntType.LIST_STRING, setter: (data, value) => data.includePlayerIds = asList<String>(value) as List<String>, getter: (data) => data.includePlayerIds),
NUIEntField<NUIPushOSNotification>(name: "included_segments", type: NUIEntType.LIST_STRING, setter: (data, value) => data.includedSegments = asList<String>(value) as List<String>, getter: (data) => data.includedSegments),
NUIEntField<NUIPushOSNotification>(name: "excluded_segments", type: NUIEntType.LIST_STRING, setter: (data, value) => data.excludedSegments = asList<String>(value) as List<String>, getter: (data) => data.excludedSegments),
];
}