Skip to content

Instantly share code, notes, and snippets.

@rinukkusu
Created November 28, 2017 11:46
Show Gist options
  • Save rinukkusu/289ab470ff20df6585b1d196fa43b7b1 to your computer and use it in GitHub Desktop.
Save rinukkusu/289ab470ff20df6585b1d196fa43b7b1 to your computer and use it in GitHub Desktop.
class Consumer {
String name;
String connectionName;
String consumerTag;
bool isAckRequired;
bool isExclusive;
Consumer.fromJson(Map<String, dynamic> map) {
name = map["name"];
connectionName = map["connectionName"];
consumerTag = map["consumerTag"];
isAckRequired = map["isAckRequired"];
isExclusive = map["isExclusive"];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment