fromMap static method

DartOptions fromMap(
  1. Map<String, Object> map
)

Creates a DartOptions from a Map representation where: x = DartOptions.fromMap(x.toMap()).

Implementation

static DartOptions fromMap(Map<String, Object> map) {
  final Iterable<dynamic>? copyrightHeader =
      map['copyrightHeader'] as Iterable<dynamic>?;
  return DartOptions(
    copyrightHeader: copyrightHeader?.cast<String>(),
    sourceOutPath: map['sourceOutPath'] as String?,
    testOutPath: map['testOutPath'] as String?,
  );
}