fields method
List<NUIEntField>
fields(
)
override
Implementation
@override
List<NUIEntField> fields() {
return [
NUIEntField<NUIMiniProgramModule>(name: "id", type: NUIEntType.STRING, setter: (data, value) => data.id = value, getter: (data) => data.id),
NUIEntField<NUIMiniProgramModule>(name: "name", type: NUIEntType.STRING, setter: (data, value) => data.name = value, getter: (data) => data.name),
NUIEntField<NUIMiniProgramModule>(name: "version", type: NUIEntType.STRING, setter: (data, value) => data.version = value, getter: (data) => data.version),
NUIEntField<NUIMiniProgramModule>(name: "sourceUrl", type: NUIEntType.STRING, setter: (data, value) => data.sourceUrl = value, getter: (data) => data.sourceUrl),
NUIEntField<NUIMiniProgramModule>(name: "remoteUrl", type: NUIEntType.STRING, setter: (data, value) => data.remoteUrl = value, getter: (data) => data.remoteUrl),
NUIEntField<NUIMiniProgramModule>(name: "brandColor", type: NUIEntType.STRING, setter: (data, value) => data.brandColor = value, getter: (data) => data.brandColor),
NUIEntField<NUIMiniProgramModule>(name: "brandColorSecond", type: NUIEntType.STRING, setter: (data, value) => data.brandColorSecond = value, getter: (data) => data.brandColorSecond),
NUIEntField<NUIMiniProgramModule>(name: "iconUrl", type: NUIEntType.STRING, setter: (data, value) => data.iconUrl = value, getter: (data) => data.iconUrl),
NUIEntField<NUIMiniProgramModule>(name: "createdAt", type: NUIEntType.DATE, setter: (data, value) => data.createdAt = asDateTime(value), getter: (data) => data.createdAt),
NUIEntField<NUIMiniProgramModule>(name: "updatedAt", type: NUIEntType.DATE, setter: (data, value) => data.updatedAt = asDateTime(value), getter: (data) => data.updatedAt),
];
}