KeyValuePair.fromJson constructor

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

Implementation

factory KeyValuePair.fromJson(Map<String, dynamic> json) {
  return KeyValuePair(
    key: json['key'] as String?,
    value: json['value'] as int?,
  );
}