This commit is contained in:
Sai Naw Wun
2020-10-07 02:33:06 +06:30
parent 01a2798a74
commit 65dda16fe6
475 changed files with 1543 additions and 90780 deletions

24
lib/domain/vo/term.dart Normal file
View File

@@ -0,0 +1,24 @@
import 'package:fcs/domain/entities/setting.dart';
class Term {
String termEng;
String termMm;
Term({this.termEng, this.termMm});
factory Term.fromSetting(Setting setting) {
return Term(termEng: setting.termsEng, termMm: setting.termsMm);
}
Map<String, dynamic> toMap() {
return {
'terms_eng': termEng,
'terms_mm': termMm,
};
}
@override
String toString() {
return 'Contact{terms_eng:$termEng}';
}
}