TestTreeModel.fromMap constructor

TestTreeModel.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory TestTreeModel.fromMap(Map<String, dynamic> map) {

  return TestTreeModel(
    id: map['id'],
    pid: map['pid'],
    checked: map['checked'],
    c1: map['c1'],
    c2: map['c2'],
  );
}