SiblingParserOptions.fromMap constructor

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

Implementation

factory SiblingParserOptions.fromMap(Map<String, dynamic> map) {
  return SiblingParserOptions(
    direction: map['direction'] != null
        ? SiblingDirection.values.firstWhere(
            (e) => e.toString() == 'SiblingDirection.${map['direction']}',
          )
        : null,
    where: map['where'] != null ? List<String>.from(map['where']) : null,
  );
}