SourceModel.fromMap constructor

SourceModel.fromMap(
  1. Map<String, dynamic> data
)

Implementation

factory SourceModel.fromMap(Map<String, dynamic> data) {
  return SourceModel(data['id'], data['name']);
}