NoteModel.fromMap constructor

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

Implementation

factory NoteModel.fromMap(Map<String, dynamic> map) {
  return NoteModel(
    name: map['name'] as String,
    octave: map['octave'] as int,
    noteIndex: map['noteIndex'] as int,
    isFlat: map['isFlat'] as bool,
  );
}