toMap method

Map<String, Object> toMap()

Converts a DartOptions to a Map representation where: x = DartOptions.fromMap(x.toMap()).

Implementation

Map<String, Object> toMap() {
  final Map<String, Object> result = <String, Object>{
    if (copyrightHeader != null) 'copyrightHeader': copyrightHeader!,
    if (sourceOutPath != null) 'sourceOutPath': sourceOutPath!,
    if (testOutPath != null) 'testOutPath': testOutPath!,
  };
  return result;
}