Redditor.parse constructor
Implementation
Redditor.parse(Reddit reddit, Map data) : super(reddit) {
if (!data.containsKey('name') &&
!(data.containsKey('kind') &&
data['kind'] == Reddit.defaultRedditorKind)) {
throw DRAWArgumentError("input argument 'data' is not a valid"
' representation of a Redditor');
}
setData(this, data);
_name = data['name'];
_path = apiPath['user'].replaceAll(RedditorRef._userRegExp, _name);
}