toMap method

Map<String, Object> toMap()

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

Implementation

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