fromData static method
Implementation
static ModeInfo fromData(ModeInfoDataArgs data) {
if (data.single != null) {
return ModeInfo(data.single);
}
// if (data.Multi != null)
// {
// return ModeInfo(data.Multi);
// }
throw Exception("Must Single or Multi");
}