fromMap static method

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

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

Implementation

static KotlinOptions fromMap(Map<String, Object> map) {
  return KotlinOptions(
    package: map['package'] as String?,
    copyrightHeader: map['copyrightHeader'] as Iterable<String>?,
    errorClassName: map['errorClassName'] as String?,
    includeErrorClass: map['includeErrorClass'] as bool? ?? true,
    fileSpecificClassNameComponent:
        map['fileSpecificClassNameComponent'] as String?,
  );
}