fromMap static method

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

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

Implementation

static ObjcOptions fromMap(Map<String, Object> map) {
  final Iterable<dynamic>? copyrightHeader =
      map['copyrightHeader'] as Iterable<dynamic>?;
  return ObjcOptions(
    headerIncludePath: map['header'] as String?,
    prefix: map['prefix'] as String?,
    copyrightHeader: copyrightHeader?.cast<String>(),
  );
}