toMap method

Map<String, String> toMap()

Convert the object to a Dart Map.

The priv and epriv properties are included.

Implementation

Map<String, String> toMap() {
  final map = <String, String>{
    'pub': pub,
    'epub': epub,
  };
  if (priv != null) {
    map['priv'] = priv!;
  }
  if (epriv != null) {
    map['epriv'] = epriv!;
  }
  return map;
}