mirrored_repositories/Mobile-Programming-Lecture-Notes/SqFLite-Sample-Flutter-Project-main/sqflite_sample/lib
class Ogrenci{

  int _id;
  String _isim;
  int _aktif;

  int get id => _id;

  set id(int value) {
    _id = value;
  }

  String get isim => _isim;

  int get aktif => _aktif;

  set aktif(int value) {
    _aktif = value;
  }

  set isim(String value) {
    _isim = value;
  }

  Ogrenci(this._isim, this._aktif);
  Ogrenci.withID(this._id, this._isim, this._aktif);

  Map<String, dynamic> dbyeYazmakIcinMapeDonustur(){
    var map = Map<String, dynamic>();
    map['id'] = _id;
    map['isim'] = _isim;
    map['aktif'] = _aktif;
    return map;
  }

  Ogrenci.dbdenOkudugunMapiObjeyeDonustur(Map<String, dynamic> map){
    this._id = map['id'];
    this._isim = map['isim'];
    this._aktif = map['aktif'];
  }

  @override
  String toString() {
    return 'Ogrenci{_id: $_id, _isim: $_isim, _aktif: $_aktif}';
  }
}