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!,
    'includeErrorClass': includeErrorClass,
    if (fileSpecificClassNameComponent != null)
      'fileSpecificClassNameComponent': fileSpecificClassNameComponent!,
  };
  return result;
}