RealtimeLogConfig.fromXml constructor

RealtimeLogConfig.fromXml(
  1. XmlElement elem
)

Implementation

factory RealtimeLogConfig.fromXml(_s.XmlElement elem) {
  return RealtimeLogConfig(
    arn: _s.extractXmlStringValue(elem, 'ARN')!,
    endPoints: _s
        .extractXmlChild(elem, 'EndPoints')!
        .findElements('member')
        .map((c) => EndPoint.fromXml(c))
        .toList(),
    fields: _s.extractXmlStringListValues(
        _s.extractXmlChild(elem, 'Fields')!, 'Field'),
    name: _s.extractXmlStringValue(elem, 'Name')!,
    samplingRate: _s.extractXmlIntValue(elem, 'SamplingRate')!,
  );
}