Welcome

My Contact Info

Mail Address : polatcelikhamza94@gmail.com

My GitHub : github.com/HamzaPolat68

<----------------------------->

Installing

Tr: Paketimizi projenize eklemek için aşağıdaki adımları takip edebilirsiniz.
En: You can follow the steps below to add our package to your project.

Code Sample: Base Model

What does it do: Base Model Service Example 
Ne işe yarar : Base Model Servis Örneği

     //En: This code is avialable in the package. You just need to call.
     //TR: Bu kod paketin içerisinde mevcuttur. Sadece çağırmanız yeterlidir.
     abstract class BaseModel<T> {
        Map<String, dynamic> toJson();
        T fromJson(Map<String, dynamic> json);
    }

    //-------[USAGE]-----------
    //-------[KULLANIM]--------
    class Example Model extends BaseModel<Extends>{
        //....
        //... 

    }
    //------------[Sample]----------------
    class NoteModel extends BaseModel<NoteModel>{
        String? note;
        String title;

        NoteModel({this.note, this.title});

        @override
        NoteModel fromJson(Map<String.dynamic>json){
            return NoteModel(
                title: json['title'],
                note: json['note'],
            );
        }

        @override 
        Map<String, dynamic> toJson(){
            return{
                'note': note,
                'title' title,
            }
        }
    }