OutputOptions.fromJson constructor

OutputOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OutputOptions.fromJson(Map<String, dynamic> json) => OutputOptions(
      castlingFormat: CastlingFormat.values
          .firstWhere((e) => e.name == json['castlingFormat']),
      showPromoted: json['showPromoted'],
      virginFiles: json['virginFiles'],
    );