fromMap abstract method

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

将Map转换为对象

  @override
  Model fromMap(Map<String, dynamic> map) {
    return Model(id: map["id"], name: map["name"]);
  }

Implementation

T fromMap(Map<String, dynamic> map);