Skip to content

Releases: dayitv89/react-native-jsmodel

Keymapper logic reverse, same as JSONModel.

05 Oct 13:10
Compare
Choose a tag to compare

keys are like id, first_name and change it as id => appID, first_name => firstName
pass args as {id: 'appID', first_name: 'firstName'}

constructor(json) {
   super(json);
   if (this.validate(json)) {
      this.keyMapper({first_name: 'firstName', last_name: 'lastName'});
   }
}

First production release published version

27 May 10:22
Compare
Choose a tag to compare
  • Basic model
  • Object Cloning
  • keyMapper