getNormalizedEventAttributeJson method

Map<String, dynamic> getNormalizedEventAttributeJson()

Implementation

Map<String, dynamic> getNormalizedEventAttributeJson() {
  final Map<String, dynamic> dateTimeAttributesParsed = {};
  dateTimeAttributes.forEach(
    (String k, String v) => dateTimeAttributesParsed[k] = {
      keyTimeStampWeb: DateTime.parse(v).millisecondsSinceEpoch.toString()
    },
  );
  return {
    _keyEventAttributes: {
      ...generalAttributes,
      ...locationAttributes,
      ...dateTimeAttributesParsed
    },
    _keyIsNonInteractive: isNonInteractive
  };
}