toMap method

Map<String, Object> toMap()

Converts a SwiftOptions to a Map representation where: x = SwiftOptions.fromList(x.toMap()).

Implementation

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