BloomFeatures.fromMap constructor

BloomFeatures.fromMap(
  1. Map map
)

Constructs a BloomFeatures configuration from a parsed map.

Implementation

factory BloomFeatures.fromMap(Map<dynamic, dynamic> map) {
  return BloomFeatures(
    routing: map['routing'] is bool ? map['routing'] as bool : true,
    state: map['state'] is bool ? map['state'] as bool : true,
    data: map['data'] is bool ? map['data'] as bool : false,
    native: map['native'] is bool ? map['native'] as bool : false,
  );
}