factory MatchPosition.fromMap(Map<String, dynamic> map) { return MatchPosition( start: map['start'] as int, length: map['length'] as int, ); }