ActiveContext.fromJson constructor

ActiveContext.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ActiveContext.fromJson(Map<String, dynamic> json) {
  return ActiveContext(
    name: json['name'] as String,
    parameters: (json['parameters'] as Map<String, dynamic>)
        .map((k, e) => MapEntry(k, e as String)),
    timeToLive: ActiveContextTimeToLive.fromJson(
        json['timeToLive'] as Map<String, dynamic>),
  );
}