toMap method

Map<String, Object> toMap()

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

Implementation

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