xmlScopes property Null safety

String xmlScopes

Implementation

@JsonKey(name: 'Scopes')
final String xmlScopes;
void xmlScopes=(String scopes)

Implementation

set xmlScopes(String scopes) {
  _scopeMap = {
    for (var scope in scopes.split(','))
      scope.replaceAll('onvif://www.onvif.org/', '').replaceAll(
          RegExp('/([^/]+)/?\$'), ''): scope.replaceAll(RegExp('.*/'), '')
  };
}