• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / optimizely-flutter-sdk / 15443958305

04 Jun 2025 01:43PM CUT coverage: 84.952%. Remained the same
15443958305

Pull #81

github

web-flow
Merge be2be8dc7 into 4b3c53c27
Pull Request #81: [FSSDK-11453] chore: prepare for release 3.0.1

621 of 731 relevant lines covered (84.95%)

1.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/lib/src/data_objects/decision_listener_response.dart
1
/// **************************************************************************
2
/// Copyright 2022, Optimizely, Inc. and contributors                        *
3
///                                                                          *
4
/// Licensed under the Apache License, Version 2.0 (the "License");          *
5
/// you may not use this file except in compliance with the License.         *
6
/// You may obtain a copy of the License at                                  *
7
///                                                                          *
8
///    http://www.apache.org/licenses/LICENSE-2.0                            *
9
///                                                                          *
10
/// Unless required by applicable law or agreed to in writing, software      *
11
/// distributed under the License is distributed on an "AS IS" BASIS,        *
12
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13
/// See the License for the specific language governing permissions and      *
14
/// limitations under the License.                                           *
15
///**************************************************************************/
16

17
import 'package:optimizely_flutter_sdk/src/utils/constants.dart';
18

19
class DecisionListenerResponse {
20
  String type = '';
21
  String userId = '';
22
  Map<String, dynamic> attributes = {};
23
  Map<String, dynamic> decisionInfo = {};
24

25
  DecisionListenerResponse(Map<String, dynamic> json) {
1✔
26
    if (json[Constants.type] is String) {
2✔
27
      type = json[Constants.type];
2✔
28
    }
29
    if (json[Constants.userId] is String) {
2✔
30
      userId = json[Constants.userId];
2✔
31
    }
32

33
    if (json[Constants.attributes] is Map<dynamic, dynamic>) {
2✔
34
      attributes = Map<String, dynamic>.from(json[Constants.attributes]);
×
35
    }
36

37
    if (json[Constants.decisionInfo] is Map<dynamic, dynamic>) {
2✔
38
      decisionInfo = Map<String, dynamic>.from(json[Constants.decisionInfo]);
3✔
39
    }
40
  }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc